brightersidetech / HTTPS-Codesys-Library

This project Implements a Library to send HTTP/ REST Requests to Webserver and REST APIs. The Project add support for HTTPS
1 stars 0 forks source link

Use library to post text message to Telegram api bot #1

Open manuel2021007 opened 4 days ago

manuel2021007 commented 4 days ago

Hello, can you help me, i found your library and test it to send message to Telegram API bot over HTTPS. But don´t work it.

my Program is:

https_client(); https_client.xExecute := execute; https_client.sURL := 'https://api.telegram.org/bot/sendMessage?chat_id=ID&text=hello'; https_client.udiTimeOut := timeout; https_client.eRequestType := HTTPS.REQUEST_TYPE.POST; https_client.pwsPostValue := ADR(wsPostValue); xDone := https_client.xDone; xError := https_client.xError;

but it only error comes, can you help me? I see in the library: "_IPAddr : NBS.IPv4Address := (ipAddress := '83.150.96.4');", what is this ?

manuel2021007 commented 3 days ago

Info: When i use it with the http_example with your lib, it don´t work in codesys 3.5.19.5 or 3.5.20.30