network-provisioning-zephyr
Zephyr port of Espressif's network provisioning protocol (Wi-Fi over BLE / SoftAP / console)
Loading...
Searching...
No Matches
scheme_console.h File Reference
Include dependency graph for scheme_console.h:

Go to the source code of this file.

Variables

const struct network_prov_scheme network_prov_scheme_console
 Console (shell) transport scheme object.
 

Variable Documentation

◆ network_prov_scheme_console

const struct network_prov_scheme network_prov_scheme_console
extern

Console (shell) transport scheme object.

Pass &network_prov_scheme_console as the scheme of network_prov_mgr_config. Requires CONFIG_NETWORK_PROV_CONSOLE (otherwise referencing it is a link error).

Note
The protocol is carried by a single shell command, "net_prov <endpoint> <session_id> <hex-request>", which dispatches the hex-decoded request to the named protocomm endpoint and prints the response as lowercase hex. Changing session_id opens a fresh protocomm session (resetting the security handshake), mirroring a BLE reconnect or a new HTTP cookie. The service_name / service_key passed to network_prov_mgr_start_provisioning are unused for this scheme. This is the transport "esp_prov &ndash;transport console" speaks.