Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
Hello
How sombody used the Function FbHttps_get from e!cockpit wagoAppHTTP.
I'm trying to get data from a webpage, but I can't get it to read from a page.
I have Internett aksess from the PLS. I can ping google.
Does sombody have an example I can look at?
I tried to makee a DUT
TYPE DUT_Norpolbuffer:UNIONbData: BYTE;sData: STRING;dwData: DWORD;charData: CHAR;END_UNIONEND_TYPE
The program
VARFbHTTPs_Get_1 : FbHTTPs_Get;// INputsURI : STRING(1023):='https://www.nordpoolgroup.com/api//marketdata/page/10';eAuthentication : eAuthentication :=1; array_pRxBufferUNIO : ARRAY[1..255] OF DUT_Norpolbuffer;udiRxBufferSize : UDINT :=1024; // receive buffer sizetTimeout : TIME; //InoutxTrigger : BOOL; // perform a request//OutputxBusy : BOOL; // job in progressxError : BOOL; // job finished with erroroStatus : FbResult; // WagoSysErrorBase // detailed status informationudiRxNBytes : UDINT; // Number of Bytes, that have been received by the Get-command//Oscat BUFFER_TO_STRINGuiStart : UINT := 1 ;uiStop : UINT := 500;tekst1 : STRING(2000);Fb_JSON_ParseAndModify_0 : Fb_JSON_ParseAndModify;xTriggerJSON : BOOL;oStatusJSON : WagoAppJSON.WagoSysErrorBase.FbResult;xErrorJSON : BOOL;xDoneJSON : BOOL;diTokenJSON : DINT;END_VAR
As I understand it, I get out DWORD. And it gets converted to BYTE, CHAR but not STRING.
Now I tried and take this array into JSON_function blocks it just complains that it is not STRING.
Do anybody have any tips?
Hello
How sombody used the Function FbHttps_get from e!cockpit wagoAppHTTP.
I'm trying to get data from a webpage, but I can't get it to read from a page.
I have Internett aksess from the PLS. I can ping google.
Does sombody have an example I can look at?
I tried to makee a DUT
The program
Program se Attachments
First signs from the website: https://www.nordpoolgroup.com/api//marketdata/page/10
{"data": {"Rows": [{"Columns":
As I understand it, I get out DWORD. And it gets converted to BYTE, CHAR but not STRING.
Now I tried and take this array into JSON_function blocks it just complains that it is not STRING.
Do anybody have any tips?