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 BluetoothAsia2018Peripheral by
Diff: peripheral_src.txt
- Revision:
- 10:bdd5a54dd4ce
- Parent:
- 6:f296b217bb4c
- Child:
- 12:085fd7fe163b
--- a/peripheral_src.txt Tue Jul 31 07:01:23 2018 +0000
+++ b/peripheral_src.txt Tue Jul 31 08:50:40 2018 +0000
@@ -46,8 +46,9 @@
// TODO: create GattService containing the three characteristics
// create an array of our characteristics so we can pass them to the service when we create it
GattCharacteristic *characteristics[] = {&animationTypeCharacteristic, &animationStatusCharacteristic, &animationControlCharacteristic};
+ctrl+S then ctrl+B
- // create the animation service and specify its characteristics. 3rd arg is the number of characteristics.
+ // TODO: create the animation service and specify its characteristics
GattService service(MicroBitAnimationServiceUUID, characteristics, sizeof(characteristics) / sizeof(GattCharacteristic *));
ctrl+S then ctrl+B
@@ -98,4 +99,4 @@
ble.gattServer().notify(animationStatusCharacteristicHandle,(uint8_t *)animation_status_buffer, 1);
}
}
-ctrl+S then ctrl+B
\ No newline at end of file
+ctrl+S then ctrl+B
