This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Interactive PyACI set Publication to address instead of address handle

So I am using the Mesh SDK in version 4.0.0 and 2 nrf52DK boards with some custom software running on the boards, but derived from the light switch examples. The boards work fine in a Mesh and I am able to provision and configure the devices. I have changed the interactive_pyaci.py script, to automatically provision and configure devices. They also are in the database JSON file and I can use them. But I am now about to write some Application where I can manage the nodes in my network and wanted to use my own database instead of the JSON one.

So the Question:

How can I use the python scripts of the interactive PyACI to set publication and subscription to a specific address instead of the corresponding address_handle? Is there an easy way to do that without having to rely on the JSON-database?

  • Hi,

    Sorry for the late response.

    No, there is no simple way of doing this. The PyACI is designed this way because the Mesh stack itself works using the handles. Only the DSM module in the stack has the knowledge of the actual address values, all other modules rely on handles. Therefore, if you want to use a new address for publication, you must first add that address to DSM, get the desired handle, and then use that handle to change the publication setting. This is how the stack operates and that is how it is reflected in the PyACI.

  • Hi, thank you very much for your answer! I just wanted to inform you, that I solved this issue by using my own database (which knows the addresses) to set the publication addresses on the startup of the script to the DSM and on closing the script it removes them again.

Related