|
| 1 | +#define SH1106_OLED /* uncomment to compile for SH1106 instead of SSD1306 */ |
| 2 | + |
1 | 3 | const char* WIFI_NETWORK = "xxx";
|
2 | 4 | const char* WIFI_PASSWORD = "xxx";
|
3 | 5 |
|
| 6 | +#define USE_WS_BRIDGE true /* true = connect to a dsmr websocket bridge - false = connect to a dsmr smartmeter */ |
| 7 | + |
| 8 | +const char* WS_BRIDGE_HOST = "192.168.0.106"; /* bridge name or ip*/ |
| 9 | +const uint16_t WS_BRIDGE_PORT = 80; /* bridge port */ |
| 10 | +const char* WS_BRIDGE_URL = "/raw"; /* bridge url */ |
| 11 | + |
4 | 12 | #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 */
|
5 | 13 |
|
6 | 14 | const IPAddress STATIC_IP(192, 168, 0, 90); /* This should be outside your router dhcp range! */
|
7 | 15 | const IPAddress GATEWAY(192, 168, 0, 1); /* Set to your gateway ip address */
|
8 | 16 | const IPAddress SUBNET(255, 255, 255, 0); /* Usually 255,255,255,0 check in your router or pc connected to the same network */
|
9 | 17 | const IPAddress PRIMARY_DNS(192, 168, 0, 30); /* Check in your router */
|
10 | 18 | const IPAddress SECONDARY_DNS(192, 168, 0, 50); /* Check in your router */
|
| 19 | + |
| 20 | +/* settings for ntp time sync */ |
| 21 | +const char* NTP_POOL = "nl.pool.ntp.org"; |
| 22 | +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 */ |
| 23 | + |
| 24 | +/* settings for a ssd1306/sh1106 oled screen */ |
| 25 | +#define OLED_ADDRESS (0x3C) |
| 26 | +#define I2C_SDA_PIN (21) |
| 27 | +#define I2C_SCL_PIN (22) |
0 commit comments