esp8266-01 freeze (I thing that so)
Posted: Thu May 26, 2016 3:21 am
Hi All
I used esp8266-01 my project my procets has tow ds18b20 sensor and connect gpio2 and connect one relay gpio0
but esp run a few hour after it is freeze (I thing that so) no any answer
my Code
I dint solved do you have any idea ?
regards
Ahmet from TURKEY/Istanbul
I used esp8266-01 my project my procets has tow ds18b20 sensor and connect gpio2 and connect one relay gpio0
but esp run a few hour after it is freeze (I thing that so) no any answer
my Code
Code: Select all
'http://192.168.4.1/msg?stat=1&action=temp
po 0 1
Timer 1000, [tick]
msgbranch [mybranch]
wait
[mybranch]
'MyReturnMsg = "Not a valid msg received"
msgget "stat" pinStatus
msgget "action" pinAction
if pinAction == "temp" then gosub [send.temp]
msgreturn MyReturnMsg
wait
[tick]
let a = a + 1
if a > 100 then po 0 1
wait
[send.temp]
cls
let a = 0
let cura = 0
temp 0 cura
let curb = 0
temp 1 curb
let cura = floor(cura) 'in temp
let curb = floor(curb) 'out temp
if cura > 75 then po 0 1 'kapat
let a = 0
let mess = ""
'let mess = mess & "{"
'let mess=mess & chr(34)
'let mess=mess & "data"
'let mess=mess & chr(34)
'let mess=mess & ":"
let mess = mess & "{"
let mess = mess & Chr(34)
let mess = mess & "temp_in"
let mess = mess & Chr(34)
let mess = mess & ":"
let mess = mess & Chr(34)
let mess = mess & cura
let mess = mess & Chr(34)
let mess = mess & ","
let mess = mess & Chr(34)
let mess = mess & "temp_out"
let mess = mess & Chr(34)
let mess = mess & ":"
let mess = mess & Chr(34)
let mess = mess & curb
let mess = mess & Chr(34)
let mess = mess & "}"
po 0 pinStatus
MyReturnMsg = mess
let a = 0
Return
I dint solved do you have any idea ?
regards
Ahmet from TURKEY/Istanbul