SolarEnergy/esp32_device/main/constants.h

46 lines
667 B
C
Raw Normal View History

2024-07-27 13:31:17 +00:00
#pragma once
2024-08-23 19:00:18 +00:00
/**
* Device reference
*/
#define DEV_REFERENCE "Wt32-Eth01"
2024-08-17 11:49:55 +00:00
/**
* Backend unsecure API URL
*/
2024-10-19 11:54:25 +00:00
#define BACKEND_UNSECURE_URL "http://central.internal:8080"
2024-08-17 11:49:55 +00:00
2024-07-27 13:31:17 +00:00
/**
* Device name len
*/
2024-08-15 11:09:01 +00:00
#define DEV_NAME_LEN 10
/**
* Private key max length
*/
2024-08-18 15:40:41 +00:00
#define PRV_KEY_DER_MAX_BYTES 1500
2024-08-18 17:42:40 +00:00
/**
* Root CA max length
*/
#define ROOT_CA_MAX_BYTES 3000
2024-08-28 22:09:47 +00:00
/**
* Device certificate max length
*/
#define DEV_CERT_MAX_BYTES 3000
2024-08-18 15:40:41 +00:00
/**
* Secure origin len
*/
2024-09-28 14:35:05 +00:00
#define SEC_ORIG_LEN 255
/**
* Interval of time (in seconds) between two synchronisations
*/
2024-10-12 14:30:53 +00:00
#define SYNC_TIME_INTERVAL 5
/**
* OTA download timeout (in milliseconds)
*/
#define OTA_REC_TIMEOUT 15000