This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

special caracter incurve script creation
#3
(03.12.2021, 16:09)admin Wrote: With 2021 firmware you can do it like this. Passing body as a table will automatically encode it as needed and will set request method to POST.
Code:
res, err = socket.http.request({
  url = 'http://127.0.0.1/scada-main/trends/save',
  user = 'admin',
  password = 'admin_p@ssword',
  body = {
    data = json.encode(trend)
  }
})

Heart 
thanks.
work on HL and SL ?
-----------
FRANCE SMARTHOME & SMARTBUILDING INTEGRATION
SE ECO EXPERT
Reply


Messages In This Thread
RE: special caracter incurve script creation - by domotiqa - 03.12.2021, 16:16

Forum Jump: