Skip to content

Commit

Permalink
Refactored command encoding (#66)
Browse files Browse the repository at this point in the history
* Refactored command encoding
* Fixed CMD_GET_SENSORS_CFG and CMD_GET_APP_PAYLOAD_CFG
* [Config Helper] Fixed Weather Sensor configuration after to modification of PayloadBresser
  • Loading branch information
matthias-bs committed Jun 10, 2024
1 parent 4054271 commit fd672ae
Show file tree
Hide file tree
Showing 7 changed files with 222 additions and 227 deletions.
14 changes: 1 addition & 13 deletions BresserWeatherSensorLW.ino
Original file line number Diff line number Diff line change
Expand Up @@ -775,18 +775,6 @@ void setup()

LoraEncoder encoder(uplinkPayload);

// Note:
// This should be enabled by a LoRaWAN downlink command if required.
// // LoRaWAN node status flags
// encoder.writeBitmap(0,
// 0,
// 0,
// 0,
// 0,
// longSleep,
// 0,
// 0);

appLayer.getPayloadStage1(1, encoder);

int16_t state = 0; // return value for calls to RadioLib
Expand Down Expand Up @@ -972,7 +960,7 @@ void setup()
// Did we get a downlink with data for us
if (downlinkSize > 0)
{
log_i("Downlink data: ");
log_i("Downlink port %u, data: ", downlinkDetails.fPort);
arrayDump(downlinkPayload, downlinkSize);

if (downlinkDetails.fPort > 0)
Expand Down
Loading

0 comments on commit fd672ae

Please sign in to comment.