Bluetooth Mesh Health Client Model#

Bluetooth Mesh Health Client Model.

This class provides the commands and messages to interface with the Health Client model.

Modules#

sl_btmesh_evt_health_client_server_status

sl_btmesh_evt_health_client_server_status_period

sl_btmesh_evt_health_client_server_status_attention

Functions#

sl_status_t
sl_btmesh_health_client_get(uint16_t server_address, uint16_t elem_index, uint16_t appkey_index, uint16_t vendor_id)
sl_status_t
sl_btmesh_health_client_clear(uint16_t server_address, uint16_t elem_index, uint16_t appkey_index, uint16_t vendor_id, uint8_t reliable)
sl_status_t
sl_btmesh_health_client_test(uint16_t server_address, uint16_t elem_index, uint16_t appkey_index, uint8_t test_id, uint16_t vendor_id, uint8_t reliable)
sl_status_t
sl_btmesh_health_client_get_period(uint16_t server_address, uint16_t elem_index, uint16_t appkey_index)
sl_status_t
sl_btmesh_health_client_set_period(uint16_t server_address, uint16_t elem_index, uint16_t appkey_index, uint8_t period, uint8_t reliable)
sl_status_t
sl_btmesh_health_client_get_attention(uint16_t server_address, uint16_t elem_index, uint16_t appkey_index)
sl_status_t
sl_btmesh_health_client_set_attention(uint16_t server_address, uint16_t elem_index, uint16_t appkey_index, uint8_t attention_sec, uint8_t reliable)

Macros#

#define
sl_btmesh_cmd_health_client_init_id 0x071a0028
#define
sl_btmesh_cmd_health_client_deinit_id 0x081a0028
#define
sl_btmesh_cmd_health_client_get_id 0x001a0028
#define
sl_btmesh_cmd_health_client_clear_id 0x011a0028
#define
sl_btmesh_cmd_health_client_test_id 0x021a0028
#define
sl_btmesh_cmd_health_client_get_period_id 0x031a0028
#define
sl_btmesh_cmd_health_client_set_period_id 0x041a0028
#define
sl_btmesh_cmd_health_client_get_attention_id 0x051a0028
#define
sl_btmesh_cmd_health_client_set_attention_id 0x061a0028
#define
sl_btmesh_rsp_health_client_init_id 0x071a0028
#define
sl_btmesh_rsp_health_client_deinit_id 0x081a0028
#define
sl_btmesh_rsp_health_client_get_id 0x001a0028
#define
sl_btmesh_rsp_health_client_clear_id 0x011a0028
#define
sl_btmesh_rsp_health_client_test_id 0x021a0028
#define
sl_btmesh_rsp_health_client_get_period_id 0x031a0028
#define
sl_btmesh_rsp_health_client_set_period_id 0x041a0028
#define
sl_btmesh_rsp_health_client_get_attention_id 0x051a0028
#define
sl_btmesh_rsp_health_client_set_attention_id 0x061a0028

Function Documentation#

sl_btmesh_health_client_init#

sl_status_t sl_btmesh_health_client_init ()

Initialize health client.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.


Definition at line 4634 of file /mnt/raid/workspaces/ws.wDIAeKYhQ/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h

sl_btmesh_health_client_deinit#

sl_status_t sl_btmesh_health_client_deinit ()

Deinitialize health client.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.


Definition at line 4644 of file /mnt/raid/workspaces/ws.wDIAeKYhQ/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h

sl_btmesh_health_client_get#

sl_status_t sl_btmesh_health_client_get (uint16_t server_address, uint16_t elem_index, uint16_t appkey_index, uint16_t vendor_id)
Parameters
[in]server_address

Destination server model address. May be a unicast address or a group address.

[in]elem_index

Client model element index. Identifies the client model used for sending the request.

[in]appkey_index

The application key index to use in encrypting the request

[in]vendor_id

Bluetooth vendor ID used in the request

Get the registered fault status of a Health Server model or models in the network.

Besides the immediate result code, the response or responses (if the destination server address is a group address) from the network will generate sl_btmesh_evt_health_client_server_status.

Returns

  • If an error occurs locally, (for instance, because of invalid parameters) an errorcode parameter is returned immediately.

Events


Definition at line 4670 of file /mnt/raid/workspaces/ws.wDIAeKYhQ/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h

sl_btmesh_health_client_clear#

sl_status_t sl_btmesh_health_client_clear (uint16_t server_address, uint16_t elem_index, uint16_t appkey_index, uint16_t vendor_id, uint8_t reliable)
Parameters
[in]server_address

Destination server model address. May be a unicast address or a group address.

[in]elem_index

Client model element index. Identifies the client model used for sending the request.

[in]appkey_index

The application key index to use in encrypting the request

[in]vendor_id

Bluetooth vendor ID used in the request

[in]reliable

If non-zero, a reliable model message is used.

Clear the fault status of a Health Server model or models in the network.

Besides the immediate result code, the response or responses (if the destination server address is a group address) from the network will generate sl_btmesh_evt_health_client_server_status.

Returns

  • If an error occurs locally (for instance, because of invalid parameters), an errorcode parameter is returned immediately.

Events


Definition at line 4699 of file /mnt/raid/workspaces/ws.wDIAeKYhQ/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h

sl_btmesh_health_client_test#

sl_status_t sl_btmesh_health_client_test (uint16_t server_address, uint16_t elem_index, uint16_t appkey_index, uint8_t test_id, uint16_t vendor_id, uint8_t reliable)
Parameters
[in]server_address

Destination server model address. May be a unicast address or a group address.

[in]elem_index

Client model element index. Identifies the client model used for sending the request.

[in]appkey_index

The application key index to use in encrypting the request

[in]test_id

Test ID used in the request

[in]vendor_id

Bluetooth vendor ID used in the request

[in]reliable

If non-zero, a reliable model message is used.

Execute a self test on a server model or models in the network.

Returns

  • If an error occurs locally (for instance, because of invalid parameters) an errorcode parameter is returned immediately.

Events


Definition at line 4726 of file /mnt/raid/workspaces/ws.wDIAeKYhQ/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h

sl_btmesh_health_client_get_period#

sl_status_t sl_btmesh_health_client_get_period (uint16_t server_address, uint16_t elem_index, uint16_t appkey_index)
Parameters
[in]server_address

Destination server model address, which may be a unicast address or a group address

[in]elem_index

Client model element index. Identifies the client model used for sending the request.

[in]appkey_index

The application key index to use in encrypting the request

Get the health period log of a Health Server model or models in the network.

Except for the immediate result code, the response or responses (if the destination server address is a group address) from the network will generate sl_btmesh_evt_health_client_server_status_period.

Returns

  • If an error occurs locally, (for instance, because of invalid parameters) an errorcode parameter is returned immediately.

Events


Definition at line 4755 of file /mnt/raid/workspaces/ws.wDIAeKYhQ/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h

sl_btmesh_health_client_set_period#

sl_status_t sl_btmesh_health_client_set_period (uint16_t server_address, uint16_t elem_index, uint16_t appkey_index, uint8_t period, uint8_t reliable)
Parameters
[in]server_address

Destination server model address. May be a unicast address or a group address.

[in]elem_index

Client model element index, which identifies the client model used for sending the request.

[in]appkey_index

The application key index to use in encrypting the request

[in]period

Health period divisor value. Valid range: 0 - 16.

[in]reliable

If non-zero, a reliable model message is used.

Set the health period divisor of a Health Server model or models in the network.

Except for the immediate result code, the response or responses (if the destination server address is a group address) from the network will generate sl_btmesh_evt_health_client_server_status_period.

Returns

  • If an error occurs locally (for instance, because of invalid parameters), an errorcode parameter is returned immediately.

Events


Definition at line 4784 of file /mnt/raid/workspaces/ws.wDIAeKYhQ/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h

sl_btmesh_health_client_get_attention#

sl_status_t sl_btmesh_health_client_get_attention (uint16_t server_address, uint16_t elem_index, uint16_t appkey_index)
Parameters
[in]server_address

Destination server model address. May be a unicast address or a group address.

[in]elem_index

Client model element index. Identifies the client model used for sending the request.

[in]appkey_index

The application key index to use in encrypting the request

Get the attention timer value of a Health Server model or models in the network.

Besides the immediate result code, the response or responses (if the destination server address is a group address) from the network will generate sl_btmesh_evt_health_client_server_status_attention.

Returns

  • If an error occurs locally (for instance, because of invalid parameters), an errorcode parameter is returned immediately.

Events


Definition at line 4813 of file /mnt/raid/workspaces/ws.wDIAeKYhQ/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h

sl_btmesh_health_client_set_attention#

sl_status_t sl_btmesh_health_client_set_attention (uint16_t server_address, uint16_t elem_index, uint16_t appkey_index, uint8_t attention_sec, uint8_t reliable)
Parameters
[in]server_address

Destination server model address. May be a unicast address or a group address.

[in]elem_index

Client model element index. Identifies the client model used for sending the request.

[in]appkey_index

The application key index to use in encrypting the request

[in]attention_sec

Attention timer period in seconds

[in]reliable

If non-zero, a reliable model message is used.

Set the attention timer value of a Health Server model or models in the network.

Except for the immediate result code, the response or responses (if the destination server address is a group address) from the network will generate sl_btmesh_evt_health_client_server_status_attention.

Returns

  • If an error occurs locally (for instance, because of invalid parameters), an errorcode parameter is returned immediately.

Events


Definition at line 4842 of file /mnt/raid/workspaces/ws.wDIAeKYhQ/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h