|
| 1 | +/* system setup file for smartMeterLogger-esp32 */ |
| 2 | + |
| 3 | +const char* WIFI_NETWORK = "xxx"; |
| 4 | +const char* WIFI_PASSWORD = "xxx"; |
| 5 | + |
| 6 | +/* settings for smartMeter */ |
| 7 | +#define RXD_PIN (36) |
| 8 | +#define BAUDRATE (115200) |
| 9 | +#define UART_NR (UART_NUM_2) |
| 10 | + |
| 11 | +#define USE_WS_BRIDGE false /* true = connect to a dsmr websocket bridge - false = connect to a dsmr smartmeter */ |
| 12 | + |
| 13 | +const char* WS_BRIDGE_HOST = "192.168.0.106"; /* bridge name or ip*/ |
| 14 | +const uint16_t WS_BRIDGE_PORT = 80; /* bridge port */ |
| 15 | +const char* WS_BRIDGE_URL = "/raw"; /* bridge url */ |
| 16 | + |
| 17 | +#define SET_STATIC_IP false /* If SET_STATIC_IP is set to true then STATIC_IP, GATEWAY, SUBNET and PRIMARY_DNS have to be set to some sane values */ |
| 18 | + |
| 19 | +const IPAddress STATIC_IP (192, 168, 0, 90); /* This should be outside your router dhcp range! */ |
| 20 | +const IPAddress GATEWAY (192, 168, 0, 1); /* Set to your gateway ip address */ |
| 21 | +const IPAddress SUBNET (255, 255, 255, 0); /* Usually 255,255,255,0 check in your router or pc connected to the same network */ |
| 22 | +const IPAddress PRIMARY_DNS (192, 168, 0, 30); /* Check in your router */ |
| 23 | +const IPAddress SECONDARY_DNS (0, 0, 0, 0); /* Check in your router */ |
| 24 | + |
| 25 | +/* settings for ntp time sync */ |
| 26 | +const char* NTP_POOL = "nl.pool.ntp.org"; |
| 27 | +const char* TIMEZONE = "CET-1CEST,M3.5.0/2,M10.5.0/3"; /* Central European Time - see http://www.remotemonitoringsystems.ca/time-zone-abbreviations.php */ |
| 28 | + |
| 29 | +/* settings for a ssd1306/sh1106 oled screen */ |
| 30 | +//#define SH1106_OLED /* uncomment to compile for SH1106 instead of SSD1306 */ |
| 31 | + |
| 32 | +#define OLED_ADDRESS (0x3C) |
| 33 | +#define I2C_SDA_PIN (21) |
| 34 | +#define I2C_SCL_PIN (22) |
0 commit comments