Hi All, I am using light_control example from Mesh SDK and I need to get something that identify my device in mesh e.g id, address. I would like to send some message to the specific node. Do you have any idea how to do it?
Regards, Butu
Hi All, I am using light_control example from Mesh SDK and I need to get something that identify my device in mesh e.g id, address. I would like to send some message to the specific node. Do you have any idea how to do it?
Regards, Butu
Hi Butu,
You can print out the unique address of the node using dsm_local_unicast_addresses_get() call.
dsm_local_unicast_address_t address;
dsm_local_unicast_addresses_get(&address);
You will have a list of address, for your elements on the node, start from address.address_start and have address.count addresses (count = 1 if you only have one element).
You should call this after you have your device configured, suggest to call inside configuration_complete()
Hi Hung,
Is it possible to change node address after it get provisioned.
how to assign a specific address to specific node.
I don't think it's possible. You would need to do provisioning the node again as a new node to change the unicast address.
But you can always change the subscription address(es) of a node. I think it's a better solution.
Hi Hung Bui,
Thank you very much for your response.
In light switch example, it looks like the address of the node is decided by provisioner in sequential order. is it possible to give specific address(eg. entered by user form serial port) to provisionee.
Hi Hung Bui,
Thank you very much for your response.
In light switch example, it looks like the address of the node is decided by provisioner in sequential order. is it possible to give specific address(eg. entered by user form serial port) to provisionee.
Yes, I don't think it's a problem. You just need to modify the provisioner code to do so.