![](/media/cache/profiles/profile_bzkUZOw.jpg.50x50_q85.jpg)
Adafruit Bluefruit with KL25Z
Dependencies: BLE_nRF8001 mbed
Simple implementation of UART on FRDM KL25Z board with nRF8001 Adafruit breakout. Uses RedBearLabs Library and could be made to work with their BLE Shield.
UART Characteristics can be changed to work with either RedBearLabs BLE Controller app or using the Nordic settings the nRF apps or the Adafruit Bluefruit LE apps.
Diff: main.cpp
- Revision:
- 2:e6d7390d4429
- Parent:
- 1:b394935d1db1
- Child:
- 3:b5dc2454dfc3
diff -r b394935d1db1 -r e6d7390d4429 main.cpp --- a/main.cpp Thu Mar 09 22:14:23 2017 +0000 +++ b/main.cpp Thu Mar 09 22:39:56 2017 +0000 @@ -46,11 +46,11 @@ BLEPeripheral blePeripheral = BLEPeripheral(&BLE_REQ, &BLE_RDY, &BLE_RESET); // create service -BLEService uartService = BLEService("713d0000503e4c75ba943148f18d941e"); +BLEService uartService = BLEService("6e400001b5a3f393e0a9e50e24dcca9e"); // create characteristic -BLECharacteristic txCharacteristic = BLECharacteristic("713d0002503e4c75ba943148f18d941e", BLENotify, 20); -BLECharacteristic rxCharacteristic = BLECharacteristic("713d0003503e4c75ba943148f18d941e", BLEWriteWithoutResponse, 20); +BLECharacteristic txCharacteristic = BLECharacteristic("6e400001b5a3f393e0a9e50e24dcca9e", BLENotify, 20); +BLECharacteristic rxCharacteristic = BLECharacteristic("6e400001b5a3f393e0a9e50e24dcca9e", BLEWriteWithoutResponse, 20); /*--------------------------------------------------------------------------------------------*/ unsigned int interval = 0;