You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How can I get any incoming message(without using Feature class) and send it to external parser? #18
by the way all the SDK is based on Feature, if you don't use it you can't enable notification/read characteristics ecc..
you can do a feature that copies all the data inside the Sample class end then do the parsing inside the onUpgrade method.. but the feature.extractData method exist to do the message parsing..
you can look to this class if you want to see something where not all parsing is done inside the extractData method: FFTAmplitude
yes exactly.
After that you register a the Feature class (mapping the UUID with the class that will manage it) you can forget the UUID the sdk will take care to see if it present and do the correct operation on it, and will present you the parsed data.
OK, Im starting to get it... another question - when I get the features of the node via the getfeatures() method the list dosent include the custom features which ive added..
how can I get those?
Activity
GiovanniVisentiniST commentedon May 2, 2019
why you can't parse it inside the Feature?
by the way all the SDK is based on Feature, if you don't use it you can't enable notification/read characteristics ecc..
you can do a feature that copies all the data inside the Sample class end then do the parsing inside the onUpgrade method.. but the feature.extractData method exist to do the message parsing..
you can look to this class if you want to see something where not all parsing is done inside the extractData method: FFTAmplitude
AviyaSmila commentedon May 2, 2019
OK, how is the SDK map the incoming data to the relevant feature?
GiovanniVisentiniST commentedon May 2, 2019
yes exactly.
After that you register a the Feature class (mapping the UUID with the class that will manage it) you can forget the UUID the sdk will take care to see if it present and do the correct operation on it, and will present you the parsed data.
AviyaSmila commentedon May 2, 2019
Ok.
But how is this happening?
Our BLE device isn`t ready yet and I want to get to know how the data processing is happening in the SDK
GiovanniVisentiniST commentedon May 2, 2019
✨ Magic ✨ 😜
and something related to this code:
BlueSTSDK_Android/BlueSTSDK/src/main/java/com/st/BlueSTSDK/Node.java
Line 520 in 0b772cb
AviyaSmila commentedon May 2, 2019
OK, I
m starting to get it... another question - when I get the features of the node via the getfeatures() method the list dosent include the custom features which ive added..how can I get those?
GiovanniVisentiniST commentedon May 2, 2019
you can request directly your feature with this:
getFeature
your custom char should be attached to the Node with this if:
BlueSTSDK_Android/BlueSTSDK/src/main/java/com/st/BlueSTSDK/Node.java
Line 530 in 0b772cb
if your custom feature is not present:
1- you register it in a wrong way
2- the UUID is not present in the device
3- there is a bug in the sdk