The AIROC Mesh Time Client module provides a way for an application to control Time Servers in the mesh network.
More...
The AIROC Mesh Time Client module provides a way for an application to control Time Servers in the mesh network.
To include the Mesh Models support for the Time Client module the application shall contain the WICED_BT_MESH_MODEL_TIME_CLIENT
TBD
typedef void( wiced_bt_mesh_time_client_callback_t)(uint16_t event, wiced_bt_mesh_event_t *p_event, void *p_data) |
Time Client callback is called by the Mesh Models library on receiving a message from the peer.
- Parameters
-
event | The event that the application should process (see Time Events) |
p_event | information about the message received. The same pointer should be used in the reply if required. |
p_data | Pointer to the data structure |
- Returns
- None
Time Client Module initialization.
- Parameters
-
element_idx | Device element to where model is used |
p_callback | Application or Parent model callback that will be executed on receiving a message |
- Returns
- None
Time Client Message Handler.
The Mesh Core library calls this function for each message received. The function returns WICED_TRUE if the message is destined for this specific model and successfully processed, and returns WICED_FALSE otherwise. The function parses the message and if appropriate calls the parent back to perform functionality.
- Parameters
-
p_event | Mesh event with information about received message. |
p_data | Pointer to the data portion of the message |
data_len | Length of the data in the message |
- Returns
- WICED_TRUE if the message is for this company ID/Model/Element Index combination, WICED_FALSE otherwise.
Time TAI UTC delta Get send.
- Parameters
-
p_event | Mesh event with the information about the message that has been received in the request, or created by the app for unsolicited message. |
- Returns
- WICED_BT_SUCCESS if message has been queued for transmission.
Time TAI UTC delta Set send.
- Parameters
-
p_event | Mesh event with the information about the message that has been received in the request, or created by the app for unsolicited message. |
p_time_delta_set | pointer to data portion of the Time TAI UTC delta Set message |
- Returns
- WICED_BT_SUCCESS if message has been queued for transmission.
Time Get send.
- Parameters
-
p_event | Mesh event with the information about the message that has been received in the request, or created by the app for unsolicited message. |
- Returns
- WICED_BT_SUCCESS if message has been queued for transmission.
Time Role get send.
- Parameters
-
p_event | Mesh event with the information about the message that has been received in the request, or created by the app for unsolicited message. |
- Returns
- WICED_BT_SUCCESS if message has been queued for transmission.
Time role Set send.
- Parameters
-
p_event | Mesh event with the information about the message that has been received in the request, or created by the app for unsolicited message. |
p_set_data | pointer to data portion of the Time role Set message |
- Returns
- WICED_BT_SUCCESS if message has been queued for transmission.
Time Set send.
- Parameters
-
p_event | Mesh event with the information about the message that has been received in the request, or created by the app for unsolicited message. |
p_time_set_data | pointer to data portion of the Time set message |
- Returns
- WICED_BT_SUCCESS if message has been queued for transmission.
Time Zone Get send.
- Parameters
-
p_event | Mesh event with the information about the message that has been received in the request, or created by the app for unsolicited message. |
- Returns
- WICED_BT_SUCCESS if message has been queued for transmission.
Time Zone Set send.
- Parameters
-
p_event | Mesh event with the information about the message that has been received in the request, or created by the app for unsolicited message. |
p_set_data | pointer to data portion of the Time zone set message |
- Returns
- WICED_BT_SUCCESS if message has been queued for transmission.