Closed matthias-bs closed 1 year ago
Added fix for compiler warning with Arduino core v2.0.x
Warning:
/home/runner/Arduino/libraries/MCCI_Arduino_LoRaWAN_Library/src/Arduino_LoRaWAN.h:965:87: warning: missing initializer for member 'Arduino_LoRaWAN::SessionStateHeader::Size' [-Wmissing-field-initializers]
SessionState m_savedSessionState { .Header = { .Tag = kSessionStateTag_Null } };
Fix:
SessionState m_savedSessionState { .Header = { .Tag = kSessionStateTag_Null, .Size = 0 } };
Thanks, sorry for the delay in review.
Pull request adopted and merged to master after rebase. Thanks!
Thanks!
Example sketch showing how to periodically poll a sensor and send the data to The Things Network.
Based on simple_sensor_bme280.ino with the following modifications: