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

How can get appkey handle on light switch proxy server?

Hi all, I want to add light switch client to light switch proxy server . But I dont know how to get appkey handle for bind to light switch client . Pls , help me !! Thank very much 

Parents
  • Hi Giang, 

     

    Please point me to the specific place in code you are struggling with ? The appkey handle is assigned to the model automatically by the config server when the node is configured by the provisioner. You can have a look at this demo, we have both light switch server and client on the thingy, and simply bind the app key to the client (and the server if we want to use server) using the app. 

     

     

  • Yeah, exactly I want to do as your demo. I want to add light switch client model to light switch proxy server .  The appkey handle is assigned to the model automatically by the config server when the node is configured by the provisioner, so I want get appkey handle of light switch server model for bind to light switch client model . But I can not find the code to get it . Present, I fixed appkey handle = 0 and bind to light switch client model and project can run as your demo . But I want get it by function code . Can you show me !!! Thank

Reply
  • Yeah, exactly I want to do as your demo. I want to add light switch client model to light switch proxy server .  The appkey handle is assigned to the model automatically by the config server when the node is configured by the provisioner, so I want get appkey handle of light switch server model for bind to light switch client model . But I can not find the code to get it . Present, I fixed appkey handle = 0 and bind to light switch client model and project can run as your demo . But I want get it by function code . Can you show me !!! Thank

Children
Related