[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 // See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format // for the documentation about the extensions.json format
"recommendations": [ "recommendations": [
"platformio.platformio-ide" "platformio.platformio-ide"
] ]
} }

View file

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

View file

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