Loading README.md +1 −2 Original line number Diff line number Diff line Loading @@ -64,8 +64,7 @@ The sensor performs a CO₂ measurement every one to five seconds, depending on To use it, you need to create a **config.lua** file with WiFI and MQTT settings: ```lua station_cfg.ssid = "..." station_cfg.pwd = "..." station_cfg = {ssid = "...", pwd = "..."} mqtt_host = "..." ``` Loading init.lua +1 −2 Original line number Diff line number Diff line station_cfg = {} publishing_mqtt = false publishing_http = false Loading @@ -10,7 +9,7 @@ mqttclient = mqtt.Client(device_id, 120) dofile("config.lua") print("ESP8266 " .. chip_id) print("MH-Z19 " .. chip_id) ledpin = 4 gpio.mode(ledpin, gpio.OUTPUT) Loading Loading
README.md +1 −2 Original line number Diff line number Diff line Loading @@ -64,8 +64,7 @@ The sensor performs a CO₂ measurement every one to five seconds, depending on To use it, you need to create a **config.lua** file with WiFI and MQTT settings: ```lua station_cfg.ssid = "..." station_cfg.pwd = "..." station_cfg = {ssid = "...", pwd = "..."} mqtt_host = "..." ``` Loading
init.lua +1 −2 Original line number Diff line number Diff line station_cfg = {} publishing_mqtt = false publishing_http = false Loading @@ -10,7 +9,7 @@ mqttclient = mqtt.Client(device_id, 120) dofile("config.lua") print("ESP8266 " .. chip_id) print("MH-Z19 " .. chip_id) ledpin = 4 gpio.mode(ledpin, gpio.OUTPUT) Loading