• As I understand it (I could be wrong!):

    A characteristic on a device has a handle - it's basically a number (a byte value?) which is the index of the characteristic in that device.

    Then there's the cccd - it's another handle that is used for setting flags to do with that characteristic. Specifically Espruino uses that handle to write to a device and ask for notifications - it's done here: jswrap_nrf_BluetoothRemoteGATTCharacteri­stic_startNotifications

    So Espruino stores those two as handle_cccd and handle_value (the actual characteristic) on BluetoothRemoteGATTCharacteristic. I think that should work for ESP32 as well.

    I'm not sure about the others if I'm honest, but I think you could probably ignore them safely for now.

About

Avatar for Gordon @Gordon started