forked from espressif/arduino-esp32
IDF master 3e370c4296
* Fix build compilation due to changes in the HW_TIMER's structs * Fix compilation warnings and errors with USB * Update USBCDC.cpp * Update CMakeLists.txt * Update HWCDC.cpp
This commit is contained in:
@ -228,6 +228,37 @@ typedef union {
|
||||
esp_local_ctrl_transport_config_httpd_t *httpd;
|
||||
} esp_local_ctrl_transport_config_t;
|
||||
|
||||
/**
|
||||
* @brief Security types for esp_local_control
|
||||
*/
|
||||
typedef enum esp_local_ctrl_proto_sec {
|
||||
PROTOCOM_SEC0 = 0,
|
||||
PROTOCOM_SEC1,
|
||||
PROTOCOM_SEC_CUSTOM,
|
||||
} esp_local_ctrl_proto_sec_t;
|
||||
|
||||
/**
|
||||
* Protocom security configs
|
||||
*/
|
||||
typedef struct esp_local_ctrl_proto_sec_cfg {
|
||||
/**
|
||||
* This sets protocom security version, sec0/sec1 or custom
|
||||
* If custom, user must provide handle via `proto_sec_custom_handle` below
|
||||
*/
|
||||
esp_local_ctrl_proto_sec_t version;
|
||||
|
||||
/**
|
||||
* Custom security handle if security is set custom via `proto_sec` above
|
||||
* This handle must follow `protocomm_security_t` signature
|
||||
*/
|
||||
void *custom_handle;
|
||||
|
||||
/**
|
||||
* Proof of possession to be used for local control. Could be NULL.
|
||||
*/
|
||||
void *pop;
|
||||
} esp_local_ctrl_proto_sec_cfg_t;
|
||||
|
||||
/**
|
||||
* @brief Configuration structure to pass to `esp_local_ctrl_start()`
|
||||
*/
|
||||
@ -242,6 +273,11 @@ typedef struct esp_local_ctrl_config {
|
||||
*/
|
||||
esp_local_ctrl_transport_config_t transport_config;
|
||||
|
||||
/**
|
||||
* Security version and POP
|
||||
*/
|
||||
esp_local_ctrl_proto_sec_cfg_t proto_sec;
|
||||
|
||||
/**
|
||||
* Register handlers for responding to get/set requests on properties
|
||||
*/
|
||||
|
Reference in New Issue
Block a user