for publishing
Fork of LoRaWAN-lib_publishing_testing_UART_bug by
Revision 14:ed07a96bbd4f, committed 2017-12-13
- Comitter:
- Rishin
- Date:
- Wed Dec 13 21:32:07 2017 +0000
- Parent:
- 13:2337cfa0bea3
- Commit message:
- commit for publish - encryption reinstated
Changed in this revision
LoRaMac.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 2337cfa0bea3 -r ed07a96bbd4f LoRaMac.cpp --- a/LoRaMac.cpp Tue Dec 12 11:19:44 2017 +0000 +++ b/LoRaMac.cpp Wed Dec 13 21:32:07 2017 +0000 @@ -3211,11 +3211,11 @@ if( framePort == 0 ) { - //LoRaMacPayloadEncrypt( (uint8_t* ) payload, LoRaMacTxPayloadLen, LoRaMacNwkSKey, LoRaMacDevAddr, UP_LINK, UpLinkCounter, &LoRaMacBuffer[pktHeaderLen] ); // Rish edit + LoRaMacPayloadEncrypt( (uint8_t* ) payload, LoRaMacTxPayloadLen, LoRaMacNwkSKey, LoRaMacDevAddr, UP_LINK, UpLinkCounter, &LoRaMacBuffer[pktHeaderLen] ); // Rish edit } else { - //LoRaMacPayloadEncrypt( (uint8_t* ) payload, LoRaMacTxPayloadLen, LoRaMacAppSKey, LoRaMacDevAddr, UP_LINK, UpLinkCounter, &LoRaMacBuffer[pktHeaderLen] ); // Rish edit + LoRaMacPayloadEncrypt( (uint8_t* ) payload, LoRaMacTxPayloadLen, LoRaMacAppSKey, LoRaMacDevAddr, UP_LINK, UpLinkCounter, &LoRaMacBuffer[pktHeaderLen] ); // Rish edit } } LoRaMacBufferPktLen = pktHeaderLen + LoRaMacTxPayloadLen;