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

SDK for Mesh: Create subscription using Interactive PyACI

Hi,

I'm using the nRF SDK for Mesh v2.1.1 with the Interactive PyACI Python console. I have been able to run the Interactive mesh provisioning and configuration example.

What I would like to do now is to create a subscription for the SimpleOnOffClient implemented in Python, i.e., when the server updates its status (e.g. triggered by another simple on off client connected to it) I would like to see an update in the interactive console. Is this possible? If so, how do I add the subscription. If not, what would need to be changed to make this work?

Thanks!

Parents
  • Hi Strudel, 

    To be able to setup subscription address, you would need to add the address to the model using .model_subscription_add() by using configuration client. 

    Basically you need to point cc (the configuration client in pyACI) to the client you want to configure using publish_set()

    And then call cc.model_subscription_add(Your_element_address, Group address you want to listen to , mt-ModelId(your model)) 

Reply
  • Hi Strudel, 

    To be able to setup subscription address, you would need to add the address to the model using .model_subscription_add() by using configuration client. 

    Basically you need to point cc (the configuration client in pyACI) to the client you want to configure using publish_set()

    And then call cc.model_subscription_add(Your_element_address, Group address you want to listen to , mt-ModelId(your model)) 

Children
No Data
Related