HTTP and OPC UA on Raspberry Pi [message #1832844] |
Sat, 26 September 2020 13:07  |
Eclipse User |
|
|
|
Hi,
I'm trying to create an OPC UA server on a Rasperry Pi with methods that trigger http GET and POST requests to a REST API to control another device. GET works fine according to the documentation but POST unfortunately does not. I tried a Client FB with:
- ID=http[<IP>:80/<PATH>?apikey=<XYZ>;POST;application/json;*]
- one SD={JSON String} input via a String2String FB
- two RDs to String2String FBs for the responses
So I need to send an "apikey" (as query parameter or header parameter) and a JSON string (as the body). According to the documentation (I guess there it means SD instead of RD in the http client data input section?) the query parameters are ignored when there is a SD input. I tried many variants and always got errors like:
- Client FB Status Output "No_Socket" or "Invalid_ID"
- forte errors like "You can use maximum 1 SD"
Can anybody help me with this issue or succesfully executed a http POST request already?
I'm grateful for every hint. Thanks!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03018 seconds