C# libraries system.net

Hello, I am testing PLCNext with C# and I need to implement a function called HttpWebRequest which should be included in the System.net library but unfortunately it is not. I also included a library that I already had with this function, but it does not work, as if the PLC does not support it …

Do you know if it is possible to do it? Is there a method to implement it? the test consist of sending information to an Azure cloud directly from blocks developed in C #

Hello, This is a popular request, but unfortunately the eCLR does not include the required HTTP classes from the .NET framework. The current possibilties are:

                                               * The next version of the PLCnextBase library, due soon, will include a HTTP GET function block.
                                               * The next version of the PLCnext Base library will also include a "shell" function block, which you could use to issue HTTP requests via curl (for example).
                                               * There is another function block library being planned by Phoenix Contact that will include HTTP blocks, but I don't have a release date for that yet.
                                               * If you are sending information to Azure, it may be possible to use MQTT instead of HTTP, but I haven't tried this myself so I'm not sure if it will work.

All of these options involve the use of one or more PLCnext Engineer Function Blocks running alongside your C# function block(s), and exchanging data using input and output parameters. Alternatively, if you don’t need to use PLCnext Engineer, you could write your C# application using .NET Core, and then the HTTP classes will be available. ~ Martin.

Hello Martin from the PLCNext Team. I want to send a Variable from the PLCNext Controller (AXC F 2152 Firmware Version 2023.6) to a REST Service via HTTPS. I already installed the PLCnext Base library 1.63 and i am preparing to send the data via cURL. I think that should be possible right?

I read your answer in this post: “There is another function block library being planned by Phoenix Contact that will include HTTP blocks, but I don’t have a release date for that yet.” And my Question is if the Function Block is already released? Or is there a Date ?
And are there any further solutions for solving this problem?
Greetings Mips