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:
- 10:5f1fa331d07c
- Parent:
- 9:ff3ccba5dc16
- Child:
- 12:a91455702763
--- a/CLI_Source/ble_cli.cpp Mon Jan 25 11:19:12 2016 +0000 +++ b/CLI_Source/ble_cli.cpp Tue Jan 26 09:31:06 2016 +0000 @@ -10,7 +10,7 @@ // Genral configuration parameters //#define BLE_DEBUG #define MAX_DEVNAME_LEN 32 -#define CLI_FWVERION "DELTA_CLI_V1.8" +#define CLI_FWVERION "DELTA_CLI_V1.9" #define MODULE_NAME "DFCM-NNN40-DT1R" // Advertising configuration parameters @@ -73,7 +73,7 @@ static ble_gap_addr_t m_peer_addr; //DigitalOut led1(p7); //DigitalOut led2(p13); -DigitalOut WriteInterrupt(p30); // used in OnDataWritten() +DigitalOut BLEWriteInt(p13); // used in OnDataWritten() /****************************************************** * Function Definitions @@ -142,8 +142,8 @@ console.printf("onDataWritten\r\n"); #endif // trigger Host GPIO interrupt - WriteInterrupt = !WriteInterrupt; - WriteInterrupt = !WriteInterrupt; + BLEWriteInt = !BLEWriteInt; + BLEWriteInt = !BLEWriteInt; #ifdef BLE_DEBUG console.printf("handle:%04X\r\n",params->handle); console.printf("conn_handle:%04X,writeOp:%d,offset:%04X\r\n",params->connHandle,params->writeOp,params->offset);