feature/wifi-provisioning: Changes to make wifi-provisioning compatible with ESP8266.

Changes:
Added Config to enable wifi-provisioning and protocomm & their pre-requisites.
Changed sdkconfig.defaults, apt headers, esp_log_internal.h for compilation.
Removed console, ble provisioning examples.
Modified esp_prov to enable only softap transport.
This commit is contained in:
Supreet Deshpande
2019-02-21 18:53:49 +05:30
parent bfd0647ea8
commit e7cf607c89
42 changed files with 50 additions and 2533 deletions

View File

@ -16,9 +16,13 @@
#define __ESP_LOG_INTERNAL_H__
//these functions do not check level versus ESP_LOCAL_LEVEL, this should be done in esp_log.h
void esp_log_buffer_hex_internal(const char *tag, const void *buffer, uint16_t buff_len, esp_log_level_t level);
void esp_log_buffer_char_internal(const char *tag, const void *buffer, uint16_t buff_len, esp_log_level_t level);
void esp_log_buffer_hexdump_internal( const char *tag, const void *buffer, uint16_t buff_len, esp_log_level_t log_level);
#define esp_log_buffer_hex_internal(...)
#define esp_log_buffer_char_internal(...)
#define esp_log_buffer_hexdump_internal(...)
/* TODO: Add the implementation of the below API's */
// void esp_log_buffer_hex_internal(const char *tag, const void *buffer, uint16_t buff_len, esp_log_level_t level);
// void esp_log_buffer_char_internal(const char *tag, const void *buffer, uint16_t buff_len, esp_log_level_t level);
// void esp_log_buffer_hexdump_internal( const char *tag, const void *buffer, uint16_t buff_len, esp_log_level_t log_level);
#endif

View File

@ -11,6 +11,6 @@ set(COMPONENT_SRCS "src/common/protocomm.c"
"proto-c/session.pb-c.c"
"src/transports/protocomm_httpd.c")
set(COMPONENT_PRIV_REQUIRES protobuf-c mbedtls)
set(COMPONENT_PRIV_REQUIRES protobuf-c mbedtls wifi_provisioning)
register_component()

View File

@ -1,10 +1,8 @@
COMPONENT_ADD_INCLUDEDIRS :=
COMPONENT_SRCDIRS :=
ifdef CONFIG_SSL_USING_MBEDTLS
ifdef CONFIG_MBEDTLS_CIPHER_MODE_CTR
ifdef CONFIG_ENABLE_UNIFIED_PROVISIONING
COMPONENT_ADD_INCLUDEDIRS := include/common include/security include/transports
COMPONENT_PRIV_INCLUDEDIRS := proto-c src/common
COMPONENT_SRCDIRS := src/common src/security proto-c src/transports
endif
endif

View File

@ -0,0 +1,11 @@
menu "Unified Provisioning"
config ENABLE_UNIFIED_PROVISIONING
bool "Enable Unified Provisioning"
default n
select SSL_USING_MBEDTLS
select MBEDTLS_CIPHER_MODE_CTR
select MBEDTLS_ECP_C
help
This enables Unified Provisioning feature along with required components like Wifi-Provisioning, Protocomm and their mbedtls dependencies.
endmenu

View File

@ -1,3 +1,8 @@
COMPONENT_SRCDIRS :=
COMPONENT_ADD_INCLUDEDIRS :=
ifdef CONFIG_ENABLE_UNIFIED_PROVISIONING
COMPONENT_SRCDIRS := src proto-c
COMPONENT_ADD_INCLUDEDIRS := include
COMPONENT_PRIV_INCLUDEDIRS := proto-c ../protocomm/proto-c/
endif

View File

@ -16,7 +16,7 @@
#define _WIFI_PROV_CONFIG_H_
#include <lwip/inet.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif