diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-10-03 22:56:24 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-10-03 22:56:24 +0200 |
commit | 9778f5d43ffca26e3def45f21a163c1a83feb7be (patch) | |
tree | fa17cccdeb69a83dfbfa9327bb104f81f7ceb608 /mqtt-bridge/main.lua | |
parent | 967254d72ba5e116f3019937660c346d202af7f7 (diff) | |
download | esp-playground-9778f5d43ffca26e3def45f21a163c1a83feb7be.tar.gz esp-playground-9778f5d43ffca26e3def45f21a163c1a83feb7be.tar.bz2 esp-playground-9778f5d43ffca26e3def45f21a163c1a83feb7be.tar.xz esp-playground-9778f5d43ffca26e3def45f21a163c1a83feb7be.zip |
wip
Diffstat (limited to 'mqtt-bridge/main.lua')
-rw-r--r-- | mqtt-bridge/main.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mqtt-bridge/main.lua b/mqtt-bridge/main.lua index 86d51ab..bd8d971 100644 --- a/mqtt-bridge/main.lua +++ b/mqtt-bridge/main.lua @@ -31,6 +31,10 @@ local function read_cfg(name) end function main() + local timers = { + inter = 0, + mqtt = 1 + } local wlan_ssid = read_cfg("wlan-ssid") local wlan_password = read_cfg("wlan-password") @@ -39,7 +43,7 @@ function main() local client_id = "esp8266-"..wifi.sta.getmac() require('mq') - mq_init(client_id) + mq_init(timers.mqtt, client_id) require('inter') inter_init(on_cmd) |