Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Jul 23, 2023
1 parent 1fd441a commit 2d79ffb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion examples/BresserWeatherSensorTest/BresserWeatherSensorTest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ uint8_t testData[][MSG_BUF_SIZE-1] = {
{0xEA, 0xEC, 0x7F, 0xEB, 0x5F, 0xEE, 0xEF, 0xFA, 0xFE, 0x76, 0xBB, 0xFA, 0xFF, 0x15, 0x13, 0x80, 0x14, 0xA0, 0x11,
0x10, 0x05, 0x01, 0x89, 0x44, 0x05, 0x00},

// 6-in-1 Sensor - Wind, Battery, Temperature, Humidity, UV
{0x54, 0x1B, 0x21, 0x10, 0x34, 0x27, 0x18, 0xFF, 0x88, 0xFF, 0x29, 0x28, 0x06, 0x42, 0x87, 0xFF, 0xF0, 0xC6, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},

// 6-in-1 Sensor - Wind, Rain
{0x2A, 0xAF, 0x21, 0x10, 0x34, 0x27, 0x18, 0xFF, 0xAA, 0xFF, 0x29, 0x28, 0xFF, 0xBB, 0x89, 0xFF, 0x01, 0x1F, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},

// 7-in-1 Weather Sensor
{0xC4, 0xD6, 0x3A, 0xC5, 0xBD, 0xFA, 0x18, 0xAA, 0xAA, 0xAA, 0xAA, 0xAB, 0xFC, 0xAA, 0x98, 0xDA, 0x89, 0xA3, 0x2F,
0xEC, 0xAF, 0x9A, 0xAA, 0xAA, 0xAA, 0x00}
Expand Down Expand Up @@ -89,7 +97,7 @@ void loop()

// Tries to receive radio message (non-blocking) and to decode it.
// Timeout occurs after a small multiple of expected time-on-air.
DecodeStatus decode_status = weatherSensor.decodeMessage(testData[idx][0], MSG_BUF_SIZE-1);
DecodeStatus decode_status = weatherSensor.decodeMessage(&testData[idx][0], MSG_BUF_SIZE-1);

if (decode_status == DECODE_OK) {
if (weatherSensor.sensor[i].s_type != SENSOR_TYPE_LIGHTNING) {
Expand Down

0 comments on commit 2d79ffb

Please sign in to comment.