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 NNN40_CLI by
Diff: CLI_Source/ble_cli.cpp
- Revision:
- 15:d627ee60bb78
- Parent:
- 14:397f6514bb2c
- Child:
- 16:d1682a3e93f5
--- a/CLI_Source/ble_cli.cpp Mon Apr 25 03:46:52 2016 +0000
+++ b/CLI_Source/ble_cli.cpp Mon Apr 25 10:58:14 2016 +0000
@@ -10,7 +10,7 @@
// Genral configuration parameters
#define BLE_DEBUG 0
#define MAX_DEVNAME_LEN 32
-#define CLI_FWVERION "DELTA_CLI_V1.12"
+#define CLI_FWVERION "DELTA_CLI_V1.13"
#define MODULE_NAME "DFCM-NNN40-DT1R"
// Advertising configuration parameters
@@ -32,7 +32,7 @@
#define TARGET_DEVNAME_LEN 30
typedef struct bufferGattChar {
- uint32_t props;
+ uint8_t props;
UUID char_uuid;
uint8_t value[MAX_VALUE_LENGTH];
uint16_t char_value_handle;
@@ -978,7 +978,7 @@
cyntecPrintError(CYNTEC_CMD_ERR_ARGUMENT_SYNTAX_ERROR);
return;
}
- uint32_t prop = cyntecHexToUint32(arg+2,argLen-2);
+ uint8_t prop = cyntecArgToUint8(arg+2,2);
/* handle 4th parameter - attribute value */
argLen = 0;
@@ -994,6 +994,7 @@
//console.printf("%02X ",bufferService[service_count-1].bufferGattChar[char_count].value[i]);
}
#if BLE_DEBUG
+ printf("prop:%02X\r\n",prop);
console.printf("valueLengthBuffer:%d\r\n",valueLengthBuffer);
console.printf("value:");
for (i=0 ; i < valueLengthBuffer; i++) {
