[Firmware] Add Retry for RFM69

This commit is contained in:
seiichiro 2020-03-03 05:55:29 +01:00
parent ed1114488c
commit 10b2a5f861
3 changed files with 8 additions and 9 deletions

View file

@ -1,7 +1,7 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"platformio.platformio-ide"
]
}
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"platformio.platformio-ide"
]
}

View file

@ -6,7 +6,6 @@ upload_protocol = stk500v2
upload_flags =
-P/dev/ttyACM0
-b$UPLOAD_SPEED
-B10
upload_speed = 19200
monitor_speed = 9600
board_build.f_cpu = 1000000L

View file

@ -219,7 +219,7 @@ void loop()
#endif
#ifdef RF_RFM69
radio.send(RFM69_GATEWAY, &data, sizeof(data));
radio.sendWithRetry(RFM69_GATEWAY, &data, sizeof(data), 3, random(150,400));
radio.sleep();
#endif