esp_local_ctrl_data_handler() function
Protocomm handler for `esp_local_ctrl` This is the handler which is responsible for processing incoming requests over a protocomm channel, then invokes one of the following functions depending upon the request type: - `esp_local_ctrl_get_prop_count()` - `esp_local_ctrl_get_prop_values()` -` esp_local_ctrl_set_prop_values()` The output of the above functions are used to form the response messages corresponding to request types. The formed response messages are packed and sent back via the protocomm channel.
Arguments
session_id
A number to identify an ongoing session between device and client
inbuf
Buffer which holds serialized / packed request data
inlen
Length of input buffer
outbuf
Buffer which holds serialized / packed response data
outlen
Length of output buffer
priv_data
Private data associated with `esp_local_ctrl` endpoint
Return value
- ESP_OK : Success - ESP_FAIL : Failure
![]()
esp_local_ctrl_data_handler, NULL);
esp_local_ctrl_data_handler() calls 11 functions:
![]()
esp_local_ctrl_data_handler()
esp_local_ctrl_data_handler() reads 7 variables and writes 2 variables:
![]()
esp_local_ctrl_data_handler()