9a66ff08-0800-9191-11e4-012d1540cb8e или 0xFF08battery_service или 0x180Fblood_pressure или 0x1810weight_scale или 0x181DЧаще всего Unknown Service, хотя есть 35 стандартных.
battery_level или 0x2A19waist_circumference или 0x2A97sport_type_for_aerobic_and_anaerobic_thresholdsЧаще всего Unknown Characteristic, хотя есть 179 стандартных.
navigator.bluetooth.requestDevice({filters: [{ name: 'Bulb' }],optionalServices: [0xFF08]}).then(device => {return device.gatt.connect();}).then(server)
.then(server => {return server.getPrimaryService(0xFF08);}).then(service => {return service.getCharacteristic(0xFFFC);}).then(characteristic)
<input type="text"pattern="^#(?:[0-9a-fA-F]{3}){1,2}$"required value="#FFF"><script>if (event.target.checkValidity()) {// …</script>
.then(characteristic => {return characteristic.writeValue(new Uint8Array([0, 255, 0, 0]));});
const LAMP_EFFECT = [ 0x00, // ?0xFF, // Red0xFF, // Green0xFF, // Blue0x03, // Type0x00, // ?0x06, 0x06 // Speed ];