TheThingsNetwork / arduino-device-lib

Arduino Library for TTN Devices
MIT License
208 stars 96 forks source link

Add delay after saveState() #209

Closed johanstokking closed 7 years ago

johanstokking commented 7 years ago

https://github.com/TheThingsNetwork/arduino-device-lib/blob/master/src/TheThingsNetwork.cpp#L494

jpmeijers commented 7 years ago

Isn't this problem because we do not wait for an "ok" after sending "mac save"? https://github.com/TheThingsNetwork/arduino-device-lib/blob/master/src/TheThingsNetwork.cpp#L430

jpmeijers commented 7 years ago

See https://github.com/jpmeijers/RN2483-Arduino-Library/blob/master/src/rn2xx3.cpp#L307 There I wait with a 60s timeout for the save to happen.

jpmeijers commented 7 years ago

Fixed by https://github.com/TheThingsNetwork/arduino-device-lib/pull/211