This is a simple program to work with RedBearLab BLE Controller App. Type something from the Terminal to send to the BLEController App or vice verse. Characteristics received from App will print on Terminal.
Dependencies: BLE_API mbed nRF51822
Fork of nRF51822_SimpleChat by
Revision 2:3882b42b6faf, committed 2015-06-25
- Comitter:
- chagales
- Date:
- Thu Jun 25 14:22:22 2015 +0000
- Parent:
- 1:1c058e553423
- Commit message:
- work 25/06/2015
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 1c058e553423 -r 3882b42b6faf main.cpp --- a/main.cpp Fri Oct 31 14:38:44 2014 +0000 +++ b/main.cpp Thu Jun 25 14:22:22 2015 +0000 @@ -84,7 +84,7 @@ pc.printf("Length: "); pc.putc(bytesRead); pc.printf("\r\n"); - pc.printf("Data: "); + pc.printf("Data molom: "); for(index=0; index<bytesRead; index++) { pc.putc(txPayload[index]); @@ -125,7 +125,7 @@ ble.accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED); ble.setAdvertisingType(GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED); ble.accumulateAdvertisingPayload(GapAdvertisingData::SHORTENED_LOCAL_NAME, - (const uint8_t *)"Biscuit", sizeof("Biscuit") - 1); + (const uint8_t *)"FedeMolon", sizeof("FedeMolon") - 1); ble.accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LIST_128BIT_SERVICE_IDS, (const uint8_t *)uart_base_uuid_rev, sizeof(uart_base_uuid)); // 100ms; in multiples of 0.625ms. @@ -134,7 +134,7 @@ ble.addService(uartService); ble.startAdvertising(); - pc.printf("Advertising Start \r\n"); + pc.printf("Advertising Started \r\n"); while(1) {
diff -r 1c058e553423 -r 3882b42b6faf mbed.bld --- a/mbed.bld Fri Oct 31 14:38:44 2014 +0000 +++ b/mbed.bld Thu Jun 25 14:22:22 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1 \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/031413cf7a89 \ No newline at end of file