-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcredentials.example.lua
More file actions
33 lines (28 loc) · 951 Bytes
/
credentials.example.lua
File metadata and controls
33 lines (28 loc) · 951 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
creds = {
-- WiFi Credentials
wifi = {
ssid = "yourSSID"
, pass = "yourPASS"
-- http://nodemcu.readthedocs.io/en/master/en/modules/wifi/#wifisetphymode
-- wifi.PHYMODE_B 802.11b, More range, Low Transfer rate, More current draw
-- wifi.PHYMODE_G 802.11g, Medium range, Medium transfer rate, Medium current draw
-- wifi.PHYMODE_N 802.11n, Least range, Fast transfer rate, Least current draw
, smode = wifi.PHYMODE_N
-- If the settings below are filled out then the module connects
-- using a static ip address which is faster than DHCP and
-- better for battery life. Blank "" will use DHCP.
, ipadr = ""
, nmask = ""
, gtway = ""
},
-- MQTT server credentials
mqtt = {
client = "clientid"
, user = "username"
, pass = "password"
, addr = "192.168.1.20"
, port = 1883
, tpcTx = "/home/floor/room/master/temp"
, tpcRx = "/home/floor/room/master/temp/set"
}
}