Hi,
I'm unable to retrieve battery data from a SensorTile using this SDK.
The battery feature doesn't appear in the list of available features, but the BlueMS app is able to retrieve and to show such a feature.
I've tried to manually obtain the data with
node.getFeature(FeatureBattery.class);
but it returns a null object.
I'm able to retrieve all others data (mag, gyro, acc, ...).
I'm forgetting something?
The function is called during the node connection, look if it called with the BluetoothGattCharacteristics with uuid 00020000-0001-11e1-ac36-0002a5d5c51b (the Battery characteristics)
Hi Giovanni,
at the first breakpoint I obtained the following featureClass values (in this order):
class com.st.BlueSTSDK.Features.FeatureAccelerationEvent
class com.st.BlueSTSDK.Features.FeatureTemperature
null
class com.st.BlueSTSDK.Features.FeatureTemperature
class com.st.BlueSTSDK.Features.FeatureHumidity
class com.st.BlueSTSDK.Features.FeaturePressure
class com.st.BlueSTSDK.Features.FeatureMagnetometer
class com.st.BlueSTSDK.Features.FeatureGyroscope
class com.st.BlueSTSDK.Features.FeatureAcceleration
class com.st.BlueSTSDK.Features.FeatureMicLevel
the null value caught my attention.
at the connection I obtained the following characteristics:
001d0000-0001-11e1-ac36-0002a5d5c51b
00e00000-0001-11e1-ac36-0002a5d5c51b
00000400-0001-11e1-ac36-0002a5d5c51b
04000000-0001-11e1-ac36-0002a5d5c51b
00020000-0001-11e1-ac36-0002a5d5c51b
00000100-0001-11e1-ac36-0002a5d5c51b
... omitted for the sake of brevity