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

Interactive mesh provisioning and configuration : Provisioning Several Clients Problem

Hey, I use the Interactive mesh provisioning and configuration  tutorial to setup one server and several clients which can communicate with this server.

Can you say me, how can I include several servers and several clients with the pyACI script.

If I use just one Server and One Client everything works fine but if i add additional Client like this

p.scan_start()

p.scan_stop()

p.provision(name="Light switch2")

cc.publish_set(10, 2)

cc.appkey_add(0)

cc.model_app_bind(db.nodes[2].unicast_address + 1, 0, mt.ModelId(1, 0x59))

cc.model_publication_set(db.nodes[2].unicast_address + 1, mt.ModelId(1, 0x59), mt.Publish(db.nodes[0].unicast_address, index=0, ttl=1))

the provisioning process works fine but if I  Press the Button and try to communicate to the server from the two  clients (not at the same time, one after another) something goes 
bad and i get: No reply from OnOff server 0

the same happens if I try to use the "Serial Client" in parallel to Clinet1
sc = SimpleOnOffClient()
device.model_add(sc)
sc.publish_set(0, 0)
sc.set(True)
 

Related