sleep for a very long time, because the lorawan32 board doesn't have an off switch

This commit is contained in:
geeksville
2020-02-01 19:09:17 -08:00
parent 2474b3b064
commit 02ed249374
4 changed files with 19 additions and 18 deletions

View File

@@ -22,6 +22,9 @@ public:
bool init();
/// Prepare the radio to enter sleep mode, where it should draw only 0.2 uA
void sleep() { rf95.sleep(); }
/// Send a packet - the current implementation blocks for a while possibly (FIXME)
ErrorCode sendTo(NodeNum dest, const uint8_t *buf, size_t len);