Other Parts Discussed in Thread: Z-STACK
Hi,
I have some questions related to binding. For starters: I'm using Z-Stack 2.0.0 with the sapi module (it's a modified simpleApp, in fact). I added a new command that can be sent between the simpleSensor and simple Collector. It is set as outgoing for the collector, and incoming for the sensor.
I modified the code, so the sensor binds for the reporting command at first. Then if the result is succesful I'm invoking the zb_BindDevice again with my incoming command and I wait for the result. When I'm debugging it I find the result successful, but when I try to send this command from the collector I get a no_bound_device result when sending a packet.
The original reporting works fine. These are the only nodes in the network.
Does it matter which device invokes the zb_BindDevice function?
Does the source device need to bind?
How can I get a list of devices (addresses) that have bound to a particular node (eg. list of bound sensors to a collector)? There's zb_AllowBindConfirm(uint16 source) but I dont know wether the bind was successful, since no status is returned.