49 lines
1.2 KiB
C
49 lines
1.2 KiB
C
#pragma once
|
|
|
|
#define DEV_ID "PC201504180001"
|
|
|
|
// Network Config
|
|
const char* ssid = "SmartNet"; //Not used with WiFi Manager
|
|
const char* password = "smartpass"; //Not used with WiFi Manager
|
|
const char* hostname = "ESP32_mqtt_test";
|
|
IPAddress ip(10, 98, 30, 150);
|
|
IPAddress gateway(10, 98, 30, 1);
|
|
IPAddress subnet(255, 255, 255, 0);
|
|
String ap_ssid = String("BellSystems - ") + DEV_ID;
|
|
String ap_pass = "password";
|
|
|
|
// Version Controll Settings
|
|
const char* versionUrl = "http://10.98.20.10:85/version.txt";
|
|
const char* firmwareUrl = "http://10.98.20.10:85/firmware.bin";
|
|
const float currentVersion = 1.1;
|
|
|
|
// NTP Config
|
|
const char* ntpServer = "pool.ntp.org";
|
|
const long gmtOffset_sec = 7200;
|
|
const int daylightOffset_sec = 3600;
|
|
|
|
// MQTT Config
|
|
const IPAddress MQTT_HOST(10,98,20,10);
|
|
const int MQTT_PORT = 1883;
|
|
#define MQTT_USER "esp32_vesper"
|
|
#define MQTT_PASS "vesper"
|
|
|
|
// Hardware Configuration
|
|
#define PCF8574_ADDR 0x24
|
|
|
|
|
|
// SPI W5500 ETHERNET SETUP
|
|
#define USE_TWO_ETH_PORTS 0
|
|
|
|
#ifndef ETH_PHY_CS
|
|
#define ETH_PHY_TYPE ETH_PHY_W5500
|
|
#define ETH_PHY_ADDR 1
|
|
#define ETH_PHY_CS 5
|
|
#define ETH_PHY_IRQ -1
|
|
#define ETH_PHY_RST -1
|
|
#endif
|
|
// SPI pins
|
|
#define ETH_SPI_SCK 18
|
|
#define ETH_SPI_MISO 19
|
|
#define ETH_SPI_MOSI 23
|