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