Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 |
--- 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;