esp32-s3_fota_test_wifi/main/device_config.h

30 lines
1.1 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
#include "sdkconfig.h" // so we can still use menuconfig if we want later
// Device identity (you can later derive this from MAC or NVS)
#define DEVICE_ID "ABCDABCDABCD"
// If you want to build topics using MAC, you can either:
// - Hardcode here for now, OR
// - Compute at runtime from esp_read_mac() and ignore this macro.
#define DEVICE_MAC_STR "A1B2C3D4E5F6"
// MQTT stuff set dummy now, real later
#define MQTT_BROKER_URL "mqtt://dev.vec-tr.ai:1883"
#define MQTT_BROKER_PORT 1883 /* change to your actual port */
#define MQTT_USERNAME "dev"
#define MQTT_PASSWORD "guest"
// FTP credentials dummy for now as you requested
#define FTP_SERVER_IP "216.48.186.133" // or domain
#define FTP_SERVER_PORT 21
#define FTP_USERNAME "ftpuser1"
#define FTP_PASSWORD "123456"
#define FTP_REMOTE_PATH "/files/fw/basil/V17000861409078843894/espFota.bin"
#define FTP_LOCAL_PATH "/spiffs/espFota.bin"
// WiFi again, just for testing; you can move these to menuconfig later
#define WIFI_SSID "Tej's iPhone"
#define WIFI_PASS "12345678"