BLE - error invalid_state when calling updateCharacteristicValue

01 Mar 2017

Hi,

i'm having some problems implementing a HID Consumer control over BLE. Everything works ok after pairing (no error updating the Characteristic).

But if restart the BLE nano (or disable/enable bluetooth on the computer), the connection starts successfully, but when i try to update the Characteristic (updateCharacteristic) the method returns BLE_ERROR_INVALID_STATE (6)

same result if i use the library BLE_HID (and every example that i found)

I really need some help, I'm stuck with this situation for over two week.

thanks

/media/uploads/marciofernandes/main.cpp