-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig_default.lua
124 lines (92 loc) · 3.23 KB
/
config_default.lua
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
-- Configuration file for ESP-ISEMS-nodeid
-- Lines beginning with two dashes (--) are comments.
-- BEGIN
------ Battery and Solar Module
-- Rated capacity of battery in Ampere hours (Ah)
rated_batt_capacity = 7.2
-- Rated power rating of the solar module in Watt.
solar_module_capacity = 10
-- Average power consumption of the system in Ampere (A)
average_power_consumption = 0.05
------ WIFI
-- WiFi mode
-- One of: 1 = STATION, 2 = SOFTAP, 3 = STATIONAP, 4 = NULLMODE
wlanmode = 3 -- option 1;2;3;4
---- Station
-- Wifi station AP SSID (the existing WiFi-AP that the device should connect to as a WiFi client)
sta_ssid="AP2.freifunk.net"
-- WPA key to connect to the existing AP as WiFi client
sta_pwd="" --password
-- Station hostname (leave blank for default)
sta_hostname=""
---- Accesspoint
-- Accesspoint SSID
ap_ssid="esp32-isems-ap"
-- Accesspoint WPA key (can not be blank)
ap_pwd="12345678" -- password
-- Accesspoint WiFi channel
ap_channel="9"
-- Accesspoint IP
ap_ip="192.168.10.10"
-- Accesspoint Netmask
ap_netmask="255.255.255.0"
-- Internet gateway IP
ap_gateway="192.168.10.10"
-- DNS server IP
ap_dns="8.8.8.8"
-- Accesspoint hostname (leave blank for default)
ap_hostname=""
------ System
-- Password for ftp,telnet and web
-- Beware: Passwords are send unencrypted, so can be sniffed.
webkey="pass123" -- password
-- Require sha256'ed one-time password (strongly recommended in public networks)
-- This will avoid exposing the password over the air.
-- However on the web server you have to authenticate every time a page requires
-- authentication
encrypted_webkey = false -- boolean
-- Autoreboot timer in minutes
-- The device will reboot once this timer expires.
-- Set to 0 if you don't want to use this feature.
nextreboot=3600
-- The logic of the local timezone setting in the SDK is reversed.
-- For example: To get UTC+2 you actually need to set UTC-2. Whatever...
-- The default shows central european standard time.
timezone="CEST-1"
-- Latitude of Geolocation
lat = 52.52
-- Longitude of Geolocation
long = 13.4
-- Node-ID (used in telemetry and csv log)
nodeid="ESP32-Meshnode-Unconfigured"
-- Enable (true) or disable (false) nodemcu internal debugging output.
-- Default is (false). (true) might be very verbose and spam the LUA command line
-- via serial port or telnet shell.
enable_osprint=false -- boolean
-- Verbositiy level of Telnet and serial console messages.
-- Valid values are 0 (nothing except critical errors)
-- up to 4 (very verbose for debugging)
verbose=1 -- option 1;2;3;4
---- MQTT
-- The telemetry channel to send metrics to.
-- See also MQTT configuration below.
telemetry_channel = "/isems/"
-- Telemetry configuration for MQTT
-- Enable MQTT?
mqtt_enabled = true -- boolean
-- Host to connect to
mqtt_broker1_host = "api.isems.de"
-- Port to connect to
mqtt_broker1_port = 1883
-- Close connection after sending data
mqtt_broker1_close = true -- boolean
-- Use only last (newest) data line
mqtt_broker1_short = false -- boolean
-- Second host to connect to (leave blank to disable it)
mqtt_broker2_host = ""
-- Second Port to connect to
mqtt_broker2_port = 1883
-- Close connection after sending data
mqtt_broker2_close = false -- boolean
-- Use only last (newest) data line
mqtt_broker2_short = true -- boolean