STMicroelectronics / BlueSTSDK_Android

Bluetooth low energy Sensors Technology Software Development Kit (Android version)
https://www.st.com/en/embedded-software/bluest-sdk.html
BSD 3-Clause "New" or "Revised" License
92 stars 46 forks source link

Enabling Extended Features #22

Closed ArthurKun21 closed 5 years ago

ArthurKun21 commented 5 years ago
 2019-10-25 09:50:52.449 4178-4178/com.st.BlueSTSDK.Example D/BluetoothGatt: setCharacteristicNotification() - uuid: 00000007-0002-11e1-ac36-0002a5d5c51b enable: true
 2019-10-25 09:51:05.090 4178-4178/com.st.BlueSTSDK.Example D/BluetoothGatt: setCharacteristicNotification() - uuid: 00000007-0002-11e1-ac36-0002a5d5c51b enable: false

Hi

Can i ask where can i find the enabling and disabling the feature selected in the program? like here sending the feature for FeaturePredictiveSpeedStatus enabling it to true or false

Thanks

GiovanniVisentiniST commented 5 years ago

Hi,

as for the other Feature, you have to get the feature reference using the method: node.getFeature(FeatureYouWant.class) then you can enable/disable the feature with the method: featureReference.enableNotification() featureReference.disableNotification()

Best Regards Giovanni

ArthurKun21 commented 5 years ago

thanks