I am working with bluetooth in my android application,
I have discovered my device, connected and started discovering services. I am attempting to receive notifications from characteristics but am having no joy. I know the device is sending as i have similar cod working on my iOS app with the same bluetooth hardware. this is on my OnServiceDiscovered code
<br />
public override void OnServicesDiscovered (BluetoothGatt gatt, GattStatus status)<br />
{<br />
foreach (var service in gatt.Services) {<br />
foreach (var characteristic in service.Characteristics.ToList()) {<br />
var response = gatt.SetCharacteristicNotification (characteristic, true);<br />
}</p>
<pre><code> }
}
I am hitting the loop for several characteristics and services but i never get a callback to the following method
<br />
public override void OnCharacteristicChanged (BluetoothGatt gatt, BluetoothGattCharacteristic characteristic)<br />
{<br />
var id = characteristic.Uuid.ToString ();<br />
}<br />
Am i missing something? I essentially want to subscribe to all services and attributes and receive notifications..