forked from marcoskirsch/nodemcu-httpserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhttpserver-conf.lua
More file actions
44 lines (39 loc) · 968 Bytes
/
Copy pathhttpserver-conf.lua
File metadata and controls
44 lines (39 loc) · 968 Bytes
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
-- httpserver-conf.lua
-- Part of nodemcu-httpserver, contains static configuration for httpserver.
-- Author: Sam Dieck
local conf = {}
-- Basic Authentication Conf
local auth = {}
auth.enabled = true
-- auth.enabled = false
auth.realm = "NodeMCU http server"
-- displayed in the login dialog users get
auth.user = "admin"
auth.password = "admin"
conf.auth = auth
local wlan = {}
-- wifi config etc
wlan.ssid="Mali_Zeka"
wlan.pwd="StaTeBriga123!?"
conf.wlan = wlan
local misc = {}
-- debugging
misc.debug = false
-- measuring rate in seconds, decimal value allowed
misc.wait = 5
-- pin on which the sensors are connected
misc.pin = 4
conf.misc = misc
local mqtt = {}
mqtt.clientid = "NOC_work"
mqtt.secure = true
mqtt.user = "guest"
mqtt.password = "guest"
--mqtt.broker = "broker.mqttdashboard.com"
mqtt.broker = "mqtt.thingstud.io"
mqtt.port = 9001
mqtt.topic = "/Confuzed/work"
mqtt.rtopic = "/Confuzed/work/todo"
mqtt.delay = 60
conf.mqtt = mqtt
return conf