Hi,
What should I add to my code to read the entire list of descriptors?
Example:
service: 181A -> Characteristics: 2A6F, 2A6D -> Descriptors: 2901, 290B, ....
What should I add to my code to read the entire list of descriptors?
Example:
service: 181A -> Characteristics: 2A6F, 2A6D -> Descriptors: 2901, 290B, ....
B4X:
Sub Environmental_Sensing(Characteristics As Map)
For Each id As String In Characteristics.Keys
'Log(Characteristics.Get(id))
If id = "2A6F" Then
' descriptors¿?
End If
If id = "2A6D" Then
' descriptors¿?
End If
Next
End Sub
Sub Button12_Click
'-----------------------notiffication state ON ------------------------------------
' 'Environmental_Sensing
' manager.SetNotify("181A","2A6F",True) 'Humidity
manager.SetNotify("181A","2A6D",True) 'Pressure
End Sub