central_backend
central_frontend
custom_consumption
docs
esp32_device
.devcontainer
.vscode
docs
main
CMakeLists.txt
constants.h
crypto.c
crypto.h
dev_name.c
dev_name.h
ethernet.c
ethernet.h
http_client.c
http_client.h
jwt.c
jwt.h
main.c
ota.c
ota.h
random.c
random.h
relays.c
relays.h
secure_api.c
secure_api.h
storage.c
storage.h
sync_response.c
sync_response.h
system.c
system.h
unsecure_api.c
unsecure_api.h
.gitignore
CMakeLists.txt
README.md
build_upload_dev.sh
sdkconfig
sdkconfig.old
version.txt
python_device
.drone.yml
LICENSE
Makefile
README.md
renovate.json
46 lines
667 B
C
46 lines
667 B
C
#pragma once
|
|
|
|
/**
|
|
* Device reference
|
|
*/
|
|
#define DEV_REFERENCE "Wt32-Eth01"
|
|
|
|
/**
|
|
* Backend unsecure API URL
|
|
*/
|
|
#define BACKEND_UNSECURE_URL "http://central.internal:8080"
|
|
|
|
/**
|
|
* Device name len
|
|
*/
|
|
#define DEV_NAME_LEN 10
|
|
|
|
/**
|
|
* Private key max length
|
|
*/
|
|
#define PRV_KEY_DER_MAX_BYTES 1500
|
|
|
|
/**
|
|
* Root CA max length
|
|
*/
|
|
#define ROOT_CA_MAX_BYTES 3000
|
|
|
|
/**
|
|
* Device certificate max length
|
|
*/
|
|
#define DEV_CERT_MAX_BYTES 3000
|
|
|
|
/**
|
|
* Secure origin len
|
|
*/
|
|
#define SEC_ORIG_LEN 255
|
|
|
|
/**
|
|
* Interval of time (in seconds) between two synchronisations
|
|
*/
|
|
#define SYNC_TIME_INTERVAL 5
|
|
|
|
/**
|
|
* OTA download timeout (in milliseconds)
|
|
*/
|
|
#define OTA_REC_TIMEOUT 15000 |