Skip to content

Commit 209b66a

Browse files
NicolasdejeanFokkeZB
authored andcommitted
fixed receive message (#148)
1 parent ad06600 commit 209b66a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TheThingsNetwork.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ int8_t TheThingsNetwork::sendBytes(const byte* payload, size_t length, port_t po
414414
for (size_t i = 0, d = 0; i < downlinkLength; i++, d += 2) {
415415
downlink[i] = TTN_HEX_PAIR_TO_BYTE(data[d], data[d+1]);
416416
}
417-
stateMessage(SUCCESS_MESSAGE, SCS_SUCCESSFUL_TRANSMISSION_RECEIVED);
417+
stateMessage(SUCCESS_MESSAGE, SCS_SUCCESSFUL_TRANSMISSION_RECEIVED, (const char *)itoa(downlinkLength, set_buffer, 10));
418418
if (this->messageCallback)
419419
this->messageCallback(downlink, downlinkLength, downlinkPort);
420420
return 2;
@@ -848,7 +848,7 @@ void TheThingsNetwork::stateMessage(uint8_t type, uint8_t indexMsg, const char *
848848
debugPrint(buffer);
849849
if (type == SUCCESS_MESSAGE && indexMsg == SCS_SUCCESSFUL_TRANSMISSION_RECEIVED) {
850850
debugPrint(output);
851-
debugPrintLn("bytes");
851+
debugPrintLn(" bytes");
852852
} else if (output) {
853853
debugPrintLn(output);
854854
} else {

0 commit comments

Comments
 (0)