• I've some problems in understanding handling of uuids in Espruino.
    AFAIK, ble_uuid_t is used to work with uuids
    ble_uuid_t.uuid is a 16 bit value only, and type can be unknown, 16 bit and 128 bit
    What happens with the full uuid for 128 bit ?

    For ESP32 we have a struct , which supports 16/32/128 bit uuids
    In actual port for ESP32 only 16 bit is supported. This was fine for first steps into the new world, but should not be the end of the story.
    Any recommendation, how we get this together ?

    typedef struct {
    [#define](http://forum.espruino.com/sear­ch/?q=%23define) ESP_UUID_LEN_16     2
    [#define](http://forum.espruino.com/sear­ch/?q=%23define) ESP_UUID_LEN_32     4
    [#define](http://forum.espruino.com/sear­ch/?q=%23define) ESP_UUID_LEN_128    16
        uint16_t len;							/*!< UUID length, 16bit, 32bit or 128bit */
        union {
            uint16_t    uuid16;
            uint32_t    uuid32;
            uint8_t     uuid128[ESP_UUID_LEN_128];
        } uuid;									/*!< UUID */
    } __attribute__((packed)) esp_bt_uuid_t;
    
About

Avatar for JumJum @JumJum started