- BragiMemberDecember 22, 2013 at 2:36 pmPost count: 19
I was wondering, does the api support device discovery features such as reporting of frequency band, manufacturer ID, power source, current level,…?
And if so, how can I query for this information?
Thanks.DhawalMemberDecember 22, 2013 at 6:55 pmPost count: 259
The answer is yes!
You will want to send Read Attributes for the Basic Cluster. Try the following:
1. Send Node_GetEndPointDescriptors. The ZBPServer will poll the device for all EndPoints, Clusters and the Attributes.
2. Then you can check which Attributes exist in the Basic Cluster and read them with the Node_ClusterCommand. Here’s an example of reading the Model ID of the device:
f81f //device address
0 //cluster id (Basic = 0x0000)
0 //Command Id (Read Attributes = 0x00)
[1,0,5] //Payload. [Number of Attributes, AttributeID1 higher byte, AttributeID1 lower byte, …..]
Let me know how it goes.
- You must be logged in to reply to this topic.