Was using the Happylighting application on android and I try to make a simple web application to control the led color, but can’t figure how to do it, and witch ‘gatt’ I’ve to request, I’m really new to bluetooth thing.
function onRequestBluetoothDeviceButtonClick() {
navigator.bluetooth.requestDevice({
filters: [{name:"QHM-0A0B"}],
})
.then(device => {
// device.gatt.connect()
console.log(device)
}).then(server =>{
console.log(server)
})
.catch(error => {
console.log('Argh! ' + error);
});
}
I’ve seen this on api documention, but can’t figure witch service I’ need to request and how