SolarEnergy/esp32_device/main/constants.h

46 lines
605 B
C
Raw Permalink 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"
/**
* Device version
*/
#define DEV_VERSION "0.0.1"
/**
* Device max number of relays
*/
#define DEV_MAX_RELAYS 1
2024-08-17 11:49:55 +00:00
/**
* Backend unsecure API URL
*/
#define BACKEND_UNSECURE_URL "http://devweb.internal:8080"
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
*/
#define SEC_ORIG_LEN 255