Skip to content

Commit

Permalink
File header corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Apr 28, 2024
1 parent 7a6b2fc commit 4356b67
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
13 changes: 9 additions & 4 deletions src/AppLayer.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
///////////////////////////////////////////////////////////////////////////////
// payload.cpp
// AppLayer.cpp
//
// Create data payload from sensor or simulated data
// LoRaWAN node application layer
//
// - Create data payload from sensor or simulated data
// - Decode sensor specific commands
// - Encode sensor specific status responses
// - Retain sensor specific parameters
//
// This implementation is specific for the BresserWeatherSensorLW project
//
Expand Down Expand Up @@ -123,12 +128,12 @@ AppLayer::decodeDownlink(uint8_t port, uint8_t *payload, size_t size)
weatherSensor.setSensorsExc(payload, size);
}

#if defined(MITHERMOMETER_EN) || defined(THEENGSDECODER_EN)
if ((port == CMD_GET_BLE_CONFIG) && (payload == 0x00) && (size == 1)) {
log_d("Get BLE config");
return CMD_GET_BLE_CONFIG;
}

#if defined(MITHERMOMETER_EN) || defined(THEENGSDECODER_EN)

if ((port == CMD_SET_BLE_CONFIG) && (size == 2))
{
appPrefs.begin("BWS-LW-APP", false);
Expand Down
4 changes: 2 additions & 2 deletions src/AppLayer.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
///////////////////////////////////////////////////////////////////////////////
// payload.h
// AppLayer.h
//
// Create data payload from sensor or simulated data
// LoRaWAN node application layer
//
// created: 04/2024
//
Expand Down

0 comments on commit 4356b67

Please sign in to comment.