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

How to add simple on/off client to Provisioner

in Mesh SDK v2, simple on/off model  example, client node doesn't act as a provisioner.

But I still  want to combine provision & client in the same device.

Is that  just means add "simple_thingy_client_init ( ) " on provisioner's main.c ?

or I stilll have to do add others in provisioner project ?

I know that it is possible, but how ? 

Parents
  • Hi Agatha, 

    How exactly you want to integrate the lightswitch client into the provisioner ? 

    In SDK v1.x we have 4 elements on the lightswitch client node. One element is provisioner and the others are light switch client elements. 

    When you have the client integrated on the provisioner, you need to do configuration for the client locally.

    If you only plan to have 1 client on the provisioner, it can be as easy as calling simple_on_off_client_init() because you only need one element. And then you assign the publication address of the client to the light server you want to control. 

     

    If you plan to have multiple elements, you would need to declare the local unicast address matches with the number of elements. I would suggest you to follow what we did in SDK v1.0 

     

Reply
  • Hi Agatha, 

    How exactly you want to integrate the lightswitch client into the provisioner ? 

    In SDK v1.x we have 4 elements on the lightswitch client node. One element is provisioner and the others are light switch client elements. 

    When you have the client integrated on the provisioner, you need to do configuration for the client locally.

    If you only plan to have 1 client on the provisioner, it can be as easy as calling simple_on_off_client_init() because you only need one element. And then you assign the publication address of the client to the light server you want to control. 

     

    If you plan to have multiple elements, you would need to declare the local unicast address matches with the number of elements. I would suggest you to follow what we did in SDK v1.0 

     

Children
Related