demo for electrodragon.com esp relay master
[nodemcu-iot-mqtt-relay.git] / config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- network
network = {}
--network.ip = "192.168.0.51"
--network.netmask = "255.255.255.0"
--network.gateway = "192.168.0.1"
 
-- MQTT
prefix = "/iotcc"
device = "/" .. wifi.sta.getmac() -- set the device as the wifi card mac address. Is unique, also easy to trace
 
mqttConfig = {}
mqttConfig.host = '192.168.0.50'
mqttConfig.port = '9443'
mqttConfig.user = 'iot'
mqttConfig.pass = 'iot'
mqttConfig.secure = 1
comments