Skip to content

Commit 2ba14f7

Browse files
authored
Merge branch 'master' into patch-4
2 parents 26eac60 + 4f20df9 commit 2ba14f7

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
Johan Stokking <[email protected]>
22
Fokke Zandbergen <[email protected]>
3+
Alessandro Blason <[email protected]>

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=TheThingsNetwork
2-
version=2.5.4
2+
version=2.5.5
33
author=The Things Network
44
maintainer=Johan Stokking <[email protected]>
55
sentence=The Things Network Arduino Library.

src/TheThingsNetwork.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,11 @@ void TheThingsNetwork::sleep(uint32_t mseconds)
963963
debugPrintLn(buffer);
964964
}
965965

966+
void TheThingsNetwork::wake()
967+
{
968+
autoBaud();
969+
}
970+
966971
void TheThingsNetwork::linkcheck(uint16_t seconds)
967972
{
968973
clearReadBuffer();
@@ -990,4 +995,4 @@ uint8_t TheThingsNetwork::linkcheckMargin()
990995
readResponse(MAC_TABLE, MAC_GET_SET_TABLE, MAC_MRGN, buffer, sizeof(buffer));
991996

992997
return strtol(buffer, NULL, 10);
993-
}
998+
}

src/TheThingsNetwork.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ class TheThingsNetwork
9292
ttn_response_t sendBytes(const uint8_t *payload, size_t length, port_t port = 1, bool confirm = false, uint8_t sf = 0);
9393
ttn_response_t poll(port_t port = 1, bool confirm = false);
9494
void sleep(uint32_t mseconds);
95+
void wake();
9596
void saveState();
9697
void linkcheck(uint16_t seconds);
9798
uint8_t linkcheckGateways();

0 commit comments

Comments
 (0)