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.
Revision 2:e3ff1ae9ee16, committed 2019-04-06
- Comitter:
- guiguitt
- Date:
- Sat Apr 06 11:37:27 2019 +0000
- Parent:
- 1:c6548df8c4e0
- Commit message:
- code serre;
Changed in this revision
| lorawan-SP/app/main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/lorawan-SP/app/main.cpp Sat Apr 06 11:31:39 2019 +0000
+++ b/lorawan-SP/app/main.cpp Sat Apr 06 11:37:27 2019 +0000
@@ -93,7 +93,7 @@
* User application data buffer size
*/
#if ( LORAWAN_CONFIRMED_MSG_ON == 1 )
-#define LORAWAN_APP_DATA_SIZE 11
+#define LORAWAN_APP_DATA_SIZE 1
#else
#define LORAWAN_APP_DATA_SIZE 1
@@ -320,22 +320,22 @@
if( IsTxConfirmed == true )
{
- AppData[0] = (uint8_t) 0x1D;
- AppData[1] = (uint8_t) PH;
+ AppData[0] = (uint8_t) 12;
+ //AppData[1] = (uint8_t) PH;
- AppData[2] = (uint8_t) 0x1E;
- AppData[3] = (uint8_t) OXY;
- AppData[4] = (uint8_t) OXY>>8;
+ //AppData[2] = (uint8_t) 0x1E;
+ //AppData[3] = (uint8_t) OXY;
+ //AppData[4] = (uint8_t) OXY>>8;
- AppData[5] = (uint8_t) 0x1F;
- AppData[7] = (uint8_t) COND;
- AppData[6] = (uint8_t) COND>>8;
+ //AppData[5] = (uint8_t) 0x1F;
+ //AppData[7] = (uint8_t) COND;
+ //AppData[6] = (uint8_t) COND>>8;
- AppData[8] = (uint8_t) 0x01;
- AppData[9] = (uint8_t) Temp>>8;
- AppData[10] = (uint8_t) Temp;
+ //AppData[8] = (uint8_t) 0x01;
+ //AppData[9] = (uint8_t) Temp>>8;
+ //AppData[10] = (uint8_t) Temp;
}
}