cancel
Showing results for 
Search instead for 
Did you mean: 

Studio Bluetooth

TiEt_4607661
New Contributor II

wiced_bt_mesh_event_t *p_event = wiced_bt_mesh_create_event(0x00, MESH_COMPANY_ID_CYPRESS, WICED_BT_MESH_CORE_MODEL_ID_GENERIC_LEVEL_SRV, 0, 0);

I am trying to create an event to send a Mesh message, but the function always seems to return NULL. Does anyone have an idea why this might be or how to fix this?

The device is provisioned and the Level Client element of the device has an app key and a publish address.

0 Likes
1 Solution
DheerajPK_41
Moderator
Moderator

Hi,

Could you please change 0x00 to just 0 and try again?

And please check the company id and model id are properly defined in the application.

wiced_bt_mesh_event_t *p_event = wiced_bt_mesh_create_event(0, MESH_COMPANY_ID_CYPRESS, WICED_BT_MESH_CORE_MODEL_ID_GENERIC_LEVEL_SRV, 0, 0);

If it doesn't work please attach your code here, so than i can take a look at it.

Thanks,

-Dheeraj

View solution in original post

1 Reply
DheerajPK_41
Moderator
Moderator

Hi,

Could you please change 0x00 to just 0 and try again?

And please check the company id and model id are properly defined in the application.

wiced_bt_mesh_event_t *p_event = wiced_bt_mesh_create_event(0, MESH_COMPANY_ID_CYPRESS, WICED_BT_MESH_CORE_MODEL_ID_GENERIC_LEVEL_SRV, 0, 0);

If it doesn't work please attach your code here, so than i can take a look at it.

Thanks,

-Dheeraj

View solution in original post