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