|
IOT-ESP32
|
Interfaces for WiFi network communication. More...
Functions | |
| esp_err_t | http_client_close (http_client_t *) |
| close all network resources associated with client More... | |
| void | http_client_connect (http_client_t *, char *, int) |
| set http_client connection info (host/port) More... | |
| void | http_client_enable_ssl (http_client_t *, char *) |
| set http_client to use ssl More... | |
| http_response_t | http_client_get (http_client_t *, char *) |
| execute an HTTP GET to path using client settings More... | |
| http_response_t | http_client_get_response (http_client *) |
| read http_client response after executing request More... | |
| http_client_t * | http_client_init (http_client_t *) |
| Allocate new http client handles to a struct. More... | |
| http_response_t | http_client_post (http_client_t *, char *) |
| execute an HTTP POST to path using client settings More... | |
| size_t | http_client_read (http_client_t *, char *, size_t) |
| read the body of the http_client response More... | |
| void | http_client_set_agent (http_client_t *, char *) |
| set http_client user-agent More... | |
| void | http_client_set_auth (http_client_t *, char *, char *) |
| set basic auth credentials for http client More... | |
| void | http_client_set_header (http_client_t *, char *, char *) |
| set custom headers, such as auth token More... | |
| void | http_client_set_post_data (http_client_t *, char *, size_t) |
| set http_client pointer to buffer for request body More... | |
| void | http_client_set_query (http_client_t *, char *) |
| set http_client query params as string More... | |
| void | mdns_start (mdns_config_t) |
| start mDNS services using config More... | |
| void | mdns_stop () |
| stop mDNS service More... | |
| void | network_queue_init () |
| start tasks associated with the network queues More... | |
| uint8_t | network_queue_payload (device_data_t *) |
| Schedule a payload to the network delivery queue. More... | |
| void | wifi_connect () |
| connect wi-fi using stored creds or start wifi-provisioning More... | |
| void | wifi_err_check (uint8_t) |
| track errors for wifi clients to compare against threshold More... | |
Interfaces for WiFi network communication.
| void wifi_connect | ( | ) |
connect wi-fi using stored creds or start wifi-provisioning
| void wifi_err_check | ( | uint8_t | ) |
track errors for wifi clients to compare against threshold
Excessive errors will trigger a reset with powerdown of all domains
| N_of_Err |
| http_client_t * http_client_init | ( | http_client_t * | ) |
Allocate new http client handles to a struct.
| client | ptr to an http_client_t |
| void http_client_enable_ssl | ( | http_client_t * | , |
| char * | |||
| ) |
set http_client to use ssl
| http_client | |
| ca_pem | PEM ASCII of the trusted CA |
| void http_client_set_auth | ( | http_client_t * | , |
| char * | , | ||
| char * | |||
| ) |
set basic auth credentials for http client
| http_client | |
| username | |
| password |
| void http_client_set_header | ( | http_client_t * | , |
| char * | , | ||
| char * | |||
| ) |
set custom headers, such as auth token
| http_client | |
| key | |
| value |
| void http_client_connect | ( | http_client_t * | , |
| char * | , | ||
| int | |||
| ) |
set http_client connection info (host/port)
| http_client | |
| host | |
| port |
| void http_client_set_post_data | ( | http_client_t * | , |
| char * | , | ||
| size_t | |||
| ) |
set http_client pointer to buffer for request body
| http_client | |
| body | ptr to body buffer |
| len | length of buffer |
| void http_client_set_agent | ( | http_client_t * | , |
| char * | |||
| ) |
set http_client user-agent
| http_client | |
| useragent |
| void http_client_set_query | ( | http_client_t * | , |
| char * | |||
| ) |
set http_client query params as string
| http_client | |
| params |
| http_response_t http_client_get_response | ( | http_client * | ) |
read http_client response after executing request
| http_client |
| http_response_t http_client_get | ( | http_client_t * | , |
| char * | |||
| ) |
execute an HTTP GET to path using client settings
| http_client | |
| uri_path |
| http_response_t http_client_post | ( | http_client_t * | , |
| char * | |||
| ) |
execute an HTTP POST to path using client settings
| http_client | |
| uri_path |
| size_t http_client_read | ( | http_client_t * | , |
| char * | , | ||
| size_t | |||
| ) |
read the body of the http_client response
| buf | buf to write response |
| len | length of buf |
| esp_err_t http_client_close | ( | http_client_t * | ) |
close all network resources associated with client
| http_client |
| void network_queue_init | ( | ) |
start tasks associated with the network queues
Tasks associated with the network services, such as sending updates using transport protocols. This is not related to the lower level wifi services start by wifi_connect() which handles PHY and IP layers.
| uint8_t network_queue_payload | ( | device_data_t * | ) |
Schedule a payload to the network delivery queue.
| payload |
| void mdns_start | ( | mdns_config_t | ) |
| void mdns_stop | ( | ) |
stop mDNS service