esp_ble_mesh_health_client_set_state() function
This function is called to set the Health Server states using the Health Client Model set messages.
Arguments
params
Pointer to BLE Mesh common client parameters.
set_state
Pointer to a union, each kind of opcode corresponds to one structure inside. Shall not be set to NULL.
Return value
ESP_OK on success or error code otherwise.
Notes
If you want to find the opcodes and corresponding meanings accepted by this API, please refer to esp_ble_mesh_opcode_health_client_set_t in esp_ble_mesh_defs.h