BLE seems to support multiple of the same UUID for services and characteristics, for example you could use the automation IO service with 4 digital characteristics. With Espruino, specifying the services as an object seems to prevent that as the keys won't be unique, ie:
NRF.setServices({
0x1815: { // automation
0x2A56: { // digital
readable: true,
value : 1,
},
0x2A56 { // digital --> gets ignored as it's a duplicate key
readable: true,
value: 0
}
}
});
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
BLE seems to support multiple of the same UUID for services and characteristics, for example you could use the automation IO service with 4 digital characteristics. With Espruino, specifying the services as an object seems to prevent that as the keys won't be unique, ie:
Is there any way around this?