Temperature must be compiled
This commit is contained in:
parent
9cd54da774
commit
7d60405877
2
init.lua
2
init.lua
@ -36,7 +36,7 @@ initTimer:register(5000, tmr.ALARM_SINGLE, function (t)
|
|||||||
initTimer:unregister()
|
initTimer:unregister()
|
||||||
initTimer=nil
|
initTimer=nil
|
||||||
bootledtimer=nil
|
bootledtimer=nil
|
||||||
local modlist = { "timecore" , "displayword" }
|
local modlist = { "timecore" , "displayword", "ds18b20" }
|
||||||
for i,mod in pairs(modlist) do
|
for i,mod in pairs(modlist) do
|
||||||
if (file.open(mod .. "_diet.lua")) then
|
if (file.open(mod .. "_diet.lua")) then
|
||||||
file.remove(mod .. "_diet.lc")
|
file.remove(mod .. "_diet.lc")
|
||||||
|
2
mqtt.lua
2
mqtt.lua
@ -155,7 +155,7 @@ function startMqttClient()
|
|||||||
if (mqttServer ~= nil and mqttPrefix ~= nil) then
|
if (mqttServer ~= nil and mqttPrefix ~= nil) then
|
||||||
registerMqtt()
|
registerMqtt()
|
||||||
print "Started MQTT client"
|
print "Started MQTT client"
|
||||||
if (file.open("ds18b20_diet.lua")) then
|
if (file.open("ds18b20_diet.lc")) then
|
||||||
t=require("ds18b20_diet")
|
t=require("ds18b20_diet")
|
||||||
t.setup(2) -- GPIO4
|
t.setup(2) -- GPIO4
|
||||||
readTemp() -- read once, to setup chip
|
readTemp() -- read once, to setup chip
|
||||||
|
Loading…
Reference in New Issue
Block a user