cleanup
This commit is contained in:
@ -28,11 +28,22 @@
|
||||
#include "mbedtls/certs.h"
|
||||
#include "esp_crt_bundle.h"
|
||||
|
||||
/* Constants that aren't configurable in menuconfig, yet */
|
||||
//#define CONFIG_OTA_HTTPS_SERVER_COMMON_NAME "ota.hendrikschutter.com"
|
||||
//#define CONFIG_OTA_HTTPS_SERVER_PORT "443"
|
||||
//#define CONFIG_OTA_HTTPS_URL "https://ota.hendrikschutter.com/hello-world.bin"
|
||||
//#define HTTPS_CLIENT_AUTH "b3RhOnB3" //base64("username:password")
|
||||
#ifndef CONFIG_OTA_HTTPS_URL
|
||||
#define CONFIG_OTA_HTTPS_URL "https://exmaple.com/theImage.bin"
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_OTA_HTTPS_SERVER_PORT
|
||||
#define CONFIG_OTA_HTTPS_SERVER_PORT "443"
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_OTA_HTTPS_AUTH
|
||||
#define CONFIG_OTA_HTTPS_AUTH "base64(user:password)"
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_OTA_HTTPS_SERVER_COMMON_NAME
|
||||
#define CONFIG_OTA_HTTPS_SERVER_COMMON_NAME "exmaple.com"
|
||||
#endif
|
||||
|
||||
|
||||
#define HTTPS_CLIENT_OK 0
|
||||
#define HTTPS_CLIENT_ERROR -1
|
||||
|
Reference in New Issue
Block a user