(10.02.2020, 08:22)admin Wrote: You are trying to do a POST request, try GET like this:
Code:stat, code, hdrs = request(telegram_url .. data_str)
If this still does not work then the only solution is to do firmware upgrade to 2019 RC1.
Hi!
I used in my message "\n" to go new line.
Now I receive only first line:
Code:
if grp.getvalue('9/2/7')== true then txtstate='On' else txtstate='Off' end
txtmessage = txtmessage .. ('Primario: ' .. txtstate .. '\n')
if grp.getvalue('9/2/1')== true then txtstate='On' else txtstate='Off' end
txtmessage = txtmessage .. ('Caldaia: ' .. txtstate .. '\n')
local stat, code, hdrs = request(telegram_url .. txtmessage)
Message on log is ok, message on telegram is:
"Primario: On" not else.