Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 1 month ago.
some code missing in a BLE intro example ?
mbed BLE introduction documents are very plain and helpful for me. Thank you. But I think some code is missing in an example used in the document.
URL: https://docs.mbed.com/docs/ble-intros/en/latest/Advanced/LEDReadWrite/
"The LEDService class" section in the above page has several code examples for explanation. The 3rd code example in the section contains following code lines:
LEDService(BLEDevice &_ble, bool initialValueForLEDCharacteristic) :
ble(_ble), ledState(LED_STATE_CHARACTERISTIC_UUID,
&initialValueForLEDCharacteristic {
I think the last line shown above needs some more initializer code. I guess it is simply a kind of copy-and-paste mistake...