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

how to set mesh model publish address to a client model which is on other mesh node

I have three mesh nodes in a mesh network, a provisioner, a vendor server model, and a vendor client model.

I know that a provisioner can set client model publish address to a server model address via access_model_publish_address_set(...) if the client model is on the same mesh node(provisioner).

But I need to set client model publish address on another mesh node.

Is there anybody can tell me how to do that?

Update: Sorry, I didn't describe my question clearly. I need to set publish address on a node which is not a provisioner, just a node with a vendor client model. There is another node with a vendor server model, and I have already implemented a configuration server on both client and server model node. I know how to set publish address on a provisioner node, but I don't know how to get the server model address on a non-provisioner node for access_model_publish_address_set(…). Or publish address assignment has only to be done once, all client models will be assigned the same publish address?

Parents
  • Please be aware that client and server is not a role or type of a node. They are types of model. A node can have several models and can be client and server.

    Assigning publish address is the configuration client job. You would need to implement a configuration server on the node you want to set publish address (your "client node")

    Please follow the implementation of config server we have in the light switch server example.

  • Sorry, I didn't describe my question clearly. I need to set publish address on a node which is not a provisioner, just a node with a vendor client model. There is another node with a vendor server model, and I have already implemented a configuration server on both client and server model node. I know how to set publish address on a provisioner node, but I don't know how to get the server model address on a non-provisioner node for access_model_publish_address_set(…). Or publish address assignment has only to be done once, all client model will be assigned the same publish address?

Reply
  • Sorry, I didn't describe my question clearly. I need to set publish address on a node which is not a provisioner, just a node with a vendor client model. There is another node with a vendor server model, and I have already implemented a configuration server on both client and server model node. I know how to set publish address on a provisioner node, but I don't know how to get the server model address on a non-provisioner node for access_model_publish_address_set(…). Or publish address assignment has only to be done once, all client model will be assigned the same publish address?

Children
No Data
Related