Skip to content

Commit

Permalink
Merge pull request #225 from alexbn71/patch-2
Browse files Browse the repository at this point in the history
Wake up from sleep
  • Loading branch information
johanstokking authored Jul 18, 2017
2 parents bb7b711 + 55cfe47 commit 18f58e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Johan Stokking <[email protected]>
Fokke Zandbergen <[email protected]>
Alessandro Blason <[email protected]>
5 changes: 5 additions & 0 deletions src/TheThingsNetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -958,3 +958,8 @@ void TheThingsNetwork::sleep(uint32_t mseconds)
modemStream->write(SEND_MSG);
debugPrintLn(buffer);
}

void TheThingsNetwork::wake()
{
autoBaud();
}
1 change: 1 addition & 0 deletions src/TheThingsNetwork.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class TheThingsNetwork
ttn_response_t sendBytes(const uint8_t *payload, size_t length, port_t port = 1, bool confirm = false, uint8_t sf = 0);
ttn_response_t poll(port_t port = 1, bool confirm = false);
void sleep(uint32_t mseconds);
void wake();
void saveState();
};

Expand Down

0 comments on commit 18f58e8

Please sign in to comment.