devkey_handle value and address_handle value related question

I automate the provisioning processes for many server nodes. But I want to know that in publish_set(8,0) the devkey_handle and addres_handle values how i use them that we not just manually doing its value in command like in above command publish_set(8,0)? where these values stored? how i stored these values in a variable that its work for other nodes ? 

Parents
  • Hi. 

    Thank you for your question. 

    Maybe you could add some more information about the provisioner setup you are working with? 

    where these values stored? how i stored these values in a variable that its work for other nodes

    Not sure if I understand what you are looking for. The "values" you are talking about is the "devkey_handle" and "address_handle", correct?

    Br, 
    Joakim

Reply
  • Hi. 

    Thank you for your question. 

    Maybe you could add some more information about the provisioner setup you are working with? 

    where these values stored? how i stored these values in a variable that its work for other nodes

    Not sure if I understand what you are looking for. The "values" you are talking about is the "devkey_handle" and "address_handle", correct?

    Br, 
    Joakim

Children
  • Yes joakim i talking bout devkey_handle and address_handle.

  • During provisioning of node when the provisioner scan the node uuid and assign them a devkey_handle and address_handle (8,0) but i want to know that how they assign these values and where they stored that i can easily access to that variable

  • Hi.

    Sorry this was left unanswered.

    Did you find the information you were looking for?

    Br,
    Joakim

  • NO I am still searching for that can i give you more information for better understand?

  • the above script i use for the provisioning of single node so they work good. p.provision(name="Light bulb") this command gives detail information of the which we want to provision its uuid ,network address , devkey_handle ,address_handle value and so on more information. In that information devkey_handle and address_handle value which is (8 , 0) we use further in cc.publish_set(8, 0) command to communicate with the node.

    So the above process you can see in script looks good for a single node provision but if we have many nodes to provision then its devkey_handle and address_handle will b different like for second according to my research they start from (8, 0) and then move like (9, 1) for second node if we have 3rd node then it will be like that (10, 2) 4th (11, 3) and so on.

    so if I provisioning more then one node then I can't give hard coded like cc.publish_set(8, 0) (9, 1) if i use loop that multiple time of code run.

    Now lets come to point i think you will better understand my question now.

    so I find two possible ways first one is that i put the variable where they store in code for example like this cc.publish_set(devkey, address) so every time the variable change then they will be find for this i don't find yet that variable where they stored this is still a problem.

    so what i do ? 

    I look to the provisioning manually and see that there is some sequence in the devkey_handle value and the address_handle value they start from (8, 0) then (9, 1) (10, 2)….. and so on 

    so I do this on for loop and a variable on that base i doing cc.publish_set(f, x) and they work but not good solution.

    if you have more question please ask me thanks

Related