|
本帖最后由 jason693 于 2021-5-4 20:44 编辑
要增加易微联添加配网和兼容模式配网代码要怎么写 esp8266mod模块
{ "command": "configfile",
"network": {
"bssid": "",
"ssid": "908F0",
"wmode": 1,
"hide": 0,
"pswd": "Jason908f0c@",
"offtime": 180,
"dhcp": 0,
"ip": "",
"subnet": "",
"gateway": "",
"dns": "",
"apip": "192.168.4.1",
"apsubnet": "255.255.255.0"
},
"hardware": {
"readertype": 0,
"wgd0pin": 255,
"wgd1pin": 255,
"sspin": 15,
"rfidgain": 112,
"wifipin": 255,
"rtype": 0,
"ltype": 0,
"rpin": 4,
"rtime": 200,
"buttonpin": 255,
"numrelays": 2,
"doorstatpin": 255,
"openlockpin": 255,
"relay2": {
"rtype": "1",
"ltype": "0",
"rpin": "5",
"rtime": "120"
},
"relay3": {
"rtype": "1",
"ltype": "0",
"rpin": "255",
"rtime": "120"
},
"relay4": {
"rtype": "1",
"ltype": "0",
"rpin": "255",
"rtime": "120"
}
},
"general": {
"hostnm": "908F0",
"restart": 86400,
"pswd": " 12345678"
},
"mqtt": {
"enabled": 0,
"host": "",
"port": 1883,
"topic": "",
"user": "",
"pswd": "",
"syncrate": 180,
"mqttlog": 0
},
"logmaintenance": {
"enabled": 0,
"rolloverkb": "10",
"maxlogfilesnumber": 4,
"spiffwatch": 0
},
"ntp": {
"server": "pool.ntp.org",
"interval": 30,
"timezone": 0
}
}
|
-
-
|