30 lines
1.9 KiB
Plaintext
30 lines
1.9 KiB
Plaintext
// ── Board secrets (EXAMPLE — copy to secrets.h and fill in your values) ───────
|
|
// DO NOT commit secrets.h to version control.
|
|
//
|
|
// API_SECRET — shared secret for HMAC-SHA256 API request authentication.
|
|
// Generate a strong random value with:
|
|
// python3 -c "import secrets; print(secrets.token_hex(32))"
|
|
// Then paste the same value into the board's Edit page in the Location
|
|
// Management server.
|
|
//
|
|
// WEB_USER / WEB_PASSWORD — credentials for the browser control panel.
|
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
|
|
// ─ WiFi Credentials ───────────────────────────────────────────────────────
|
|
#define WIFI_SSID "your_wifi_network"
|
|
#define WIFI_PASSWORD "your_wifi_password"
|
|
|
|
// ─ Static IP Configuration ────────────────────────────────────────────────
|
|
// Set USE_STATIC_IP to true for a fixed IP; false = use DHCP
|
|
#define USE_STATIC_IP true
|
|
#define STATIC_IP_ADDR "192.168.0.240" // C6-EVB board IP
|
|
#define STATIC_GATEWAY "192.168.0.1" // Local network gateway
|
|
#define STATIC_SUBNET "255.255.255.0" // Subnet mask
|
|
#define STATIC_DNS1 "8.8.8.8" // Google DNS primary
|
|
#define STATIC_DNS2 "8.8.4.4" // Google DNS secondary
|
|
|
|
// ─ Web Server Credentials ─────────────────────────────────────────────────
|
|
#define API_SECRET "REPLACE_WITH_OUTPUT_OF_python3_-c_import_secrets_token_hex_32"
|
|
#define WEB_USER "your_username"
|
|
#define WEB_PASSWORD "your_password"
|