Mesh example code suggestion

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
AsRa_264661
Level 4
Level 4
50 replies posted 25 replies posted 10 likes received

Hi All, DheerajP_41AnjanaM_61

I have requirement like, 

Board 1 is with mesh sensor server app, which publish data to mesh network.

Board 2 is with XXXXXX mesh application which subscribe the data from mesh network.

so if i send sensor data from Board1 , board2 should receive it.

i can do some workaround with existing light example and make it work, before putting hands i just want to know,

if any example code already exists ,which full fills for my requirement.

also i tried something in a short time.. which did not help..

In the Board2 i flashed mesh switch app, then below changes

wiced_bt_mesh_core_config_model_t   mesh_element1_models[] =

{

    WICED_BT_MESH_DEVICE,

  //  WICED_BT_MESH_MODEL_ONOFF_CLIENT,

    WICED_BT_MESH_MODEL_SENSOR_CLIENT

};

  // wiced_bt_mesh_model_onoff_client_init(ONOFF_SWITCH_ELEMENT_INDEX, NULL, is_provisioned);

    wiced_bt_mesh_model_sensor_client_init(0, mesh_sensor_client_handler, is_provisioned);

my expectation was, to receive some events when Board1 publish data but did not happen,

let me know, if anyone can comment on this.

Thanks

Ashok

0 Likes
1 Solution
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi AsRa_264661​,

You can use any client application (Eg. mesh_provision_client) which has sensor_client model defined in it to send data to sensor_server application.

Could you please try your experiment using mesh_provision_client and mesh_sensor_server application?

Thanks,

-Dheeraj

 

View solution in original post

0 Likes
1 Reply
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi AsRa_264661​,

You can use any client application (Eg. mesh_provision_client) which has sensor_client model defined in it to send data to sensor_server application.

Could you please try your experiment using mesh_provision_client and mesh_sensor_server application?

Thanks,

-Dheeraj

 

0 Likes