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

How to get hearbeat message from a node and how to reset it by PyACI?

Dear friends,

I followed the tutorial(Using serial interface for provisioning and configuration ) control a mesh node.

a) The PyACI as a host via uart connet to 52840. There is a light server joined to mesh, i used PyACI control the led on/off, now, i want to receive the heartbeat message from the light bulb peroidicity, which cmd can i use?

b) If i want to remove the node out of mesh, the PyACI can send a reset command to the node? Could you give me the reset cmd?

Thank you in advance.

By the way, if the PyACI want to subscribe the state of light server, how to do it?  The PyACI can talking to the Light server and set its publication state by below code:

In  [25]: cc.publish_set(8, 0)
In  [26]: cc.model_publication_set(db.nodes[0].unicast_address, mt.ModelId(0x1000), mt.Publish(db.groups[0].address, index=0, ttl=1))
2020-03-24 14:53:41,227 - INFO - COM27: PacketSend: {'token': 9}
2020-03-24 14:53:41,326 - INFO - COM27: {event: MeshTxComplete, data: {'token': 9}}
2020-03-24 14:53:41,372 - INFO - COM27.ConfigurationClient: Model publication status: AccessStatus.SUCCESS
2020-03-24 14:53:41,375 - INFO - COM27.ConfigurationClient: Publication status for model 1000 at element 16 to {'address': c001, 'index': 0, 'ttl': 1, 'period': 0, 'retransmit': {'count': 0, 'interval_steps': 0, 'interval': 50}, 'credentials': <FriendshipCredentials.DISABLED: 0>}

Parents Reply Children
No Data
Related