From 817e7fdbb7f7259c0c8ef53002f13a38bc5de734 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 16 Jan 2024 21:45:31 +0100 Subject: Remove adc_counts; only work with lx output for now --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 646df3b..fd3c74d 100644 --- a/init.lua +++ b/init.lua @@ -55,12 +55,12 @@ function connect_wifi() end function push_data() - local lx, raw = temt6000.read() + local lx = temt6000.read() if lx == nil then print("TEMT6000 error") else - local json_str = string.format('{"illuminance_lx": %d, "adc_counts": %d, "rssi_dbm": %d}', lx, raw, wifi.sta.getrssi()) - local influx_str = string.format("illuminance_lx=%d,adc_counts=%d", lx, raw) + local json_str = string.format('{"illuminance_lx": %d, "rssi_dbm": %d}', lx, wifi.sta.getrssi()) + local influx_str = string.format("illuminance_lx=%d", lx) if not publishing_mqtt then publishing_mqtt = true watchdog:start(true) -- cgit v1.2.3