Open venkatraopasupuleti opened 6 years ago
https://github.com/noble/bleno/blob/72028bc995d55cb9dcf223f9b0ffce563d091212/lib/hci-socket/gatt.js#L551
Web Ble code:
navigator.bluetooth.requestDevice({ filters: [{ services: ['4ac4d160-48a0-11e8-b566-0800200c9a66'] }] }) .then(device => device.gatt.connect()) .then(server => { // Getting Battery Service... return server.getPrimaryService('battery_service'); }).then(service=>{ //service is undefined })
The service becomes undefined as Gatt.prototype.handleReadByGroupRequest is not returning the 32 bit UUID primary service in the response.
@venkatraopasupuleti please provide a minimal example app that can be used to reproduce this.
https://github.com/noble/bleno/blob/72028bc995d55cb9dcf223f9b0ffce563d091212/lib/hci-socket/gatt.js#L551
Web Ble code:
The service becomes undefined as Gatt.prototype.handleReadByGroupRequest is not returning the 32 bit UUID primary service in the response.