mbc_master_set_parameter() function
Set characteristic's value defined as a name and cid parameter. The additional data for cid parameter request is taken from master parameter lookup table.
Arguments
cid
id of the characteristic for parameter
name
pointer into string name (key) of parameter (null terminated)
value
pointer to data buffer of parameter (actual representation of json value field in binary form)
type
pointer to parameter type associated with the name returned from parameter lookup table.
Return value
- esp_err_t ESP_OK - request was successful and value was saved in the slave device registers - esp_err_t ESP_ERR_INVALID_ARG - invalid argument of function or parameter descriptor - esp_err_t ESP_ERR_INVALID_RESPONSE - an invalid response from slave during processing of parameter - esp_err_t ESP_ERR_INVALID_STATE - invalid state during data processing or allocation failure - esp_err_t ESP_ERR_TIMEOUT - operation timed out and no response from slave - esp_err_t ESP_ERR_NOT_SUPPORTED - the request command is not supported by slave - esp_err_t ESP_FAIL - slave returned an exception or other failure