diff --git a/firmware/konnected-filesystem-0xf0000-2-2-4.img b/firmware/konnected-filesystem-0xf0000-2-2-4.img index 1df49b1..9c065ea 100644 Binary files a/firmware/konnected-filesystem-0xf0000-2-2-4.img and b/firmware/konnected-filesystem-0xf0000-2-2-4.img differ diff --git a/src/application.lua b/src/application.lua index 6eba8d6..5ab0cf0 100644 --- a/src/application.lua +++ b/src/application.lua @@ -110,7 +110,7 @@ sendTimer:alarm(200, tmr.ALARM_AUTO, function(t) function(code, response) timeout:stop() local pin, state, json_response - if response then + if response and code >= 200 and code < 300 then json_response = sjson.decode(response) pin = json_response.pin state = json_response.state diff --git a/src/device.lua b/src/device.lua index 6225f07..9db4a16 100644 --- a/src/device.lua +++ b/src/device.lua @@ -1,8 +1,8 @@ local me = { id = "uuid:8f655392-a778-4fee-97b9-4825918" .. string.format("%x", node.chipid()), name = "Konnected", - hwVersion = "2.2.4.beta1", - swVersion = "2.2.4.beta1", + hwVersion = "2.2.4", + swVersion = "2.2.4", http_port = math.floor(node.chipid()/1000) + 8000, urn = "urn:schemas-konnected-io:device:Security:1" }