Note that there are some explanatory texts on larger screens.

plurals
  1. PObluetooth low energy notification
    text
    copied!<p>i am trying to read temperature value from health profile.<a href="https://developer.bluetooth.org/gatt/services/Pages/ServiceViewer.aspx?u=org.bluetooth.service.health_thermometer.xml" rel="nofollow">health thermometer service</a>. according to <a href="http://developer.android.com/guide/topics/connectivity/bluetooth-le.html" rel="nofollow">official google ble devlopment page</a> when i try to notify a health thermometer characteristic to read temperature i try to write descriptor value (Client Characteristic Configuration) using writeDescriptor a callback method of writeDescriptor return status 5 according to google it's GATT_INSUFFICIENT_AUTHENTICATION. so i comment the code of writedescriptor and try to call the method mBluetoothGatt.setCharacteristicNotification(characteristic, enabled); but onCharacteristicChanged method never called. when i talk to my ios devloper team. they said that they never write a descriptor value they just set the notification to true and they get temperature value from the same chip. to write a descriptor value is necessary for android developer to get notification ??? so at last i try to run the official bluetooth app from the bluetooth.com site for test purpose they just disable all three buttons notify read and write??? thank you and sorry for my English</p> <p><strong>[UPDATE]</strong><br> find out some log which may cause some bonding issues please help me if you have any solution for that. </p> <ul> <li><p>Short-Term Key generated still log as error<br> 11-08 11:26:44.392: E/bt-smp(1014): STK Generated </p></li> <li><p>after that bond state change dramatically may this cause insufficient authentication<br> 11-08 11:26:49.437: I/BluetoothBondStateMachine(1014): bondStateChangeCallback: Status: 0 Address: 00:16:A4:C0:FF:EE newState: 2<br> 11-08 11:26:49.437: D/BtGatt.btif(1014): btif_gattc_upstreams_evt: Event 9<br> 11-08 11:26:49.437: E/BluetoothBondStateMachine(1014): In stable state, received invalid newState: 12 </p></li> </ul> <p><strong>[UPDATE]</strong><br> after upgrading kitkat 4.4 on nexus 7 . add two method<br> <code>device.createBond();<br> device.setPairingConfirmation(true);</code><br> works for me now i can read the encrypted characteristic. but still unstable. but some success i got.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload