
Public static DirectoryInfo CurrentExeDir the Api Method "Api.Browse" to get all the Methods supported by the PLC Api do the following It is not good practice to give a lot of rights to the user "Everybody" therefore please adjust the connectionconfiguration to your configured user with a safe password that should be able to call the methods.įurther examples of usage are also provided in the UnitTests of the component. The used functions would fail for the default case that he doesn't have the permissions call the method (that he tried to call). In the following example code you'll have to adjust the IpAddress ("192.168.1.1") and the login for your system - the Login "Everybody" with the password "" is a default user that is downloaded to the plc for the webserver once the webserver is activated in TIA portal. The Functionalities come together in the ApiHttpClientRequestHandler that implements the IAsyncApiRequesthandler (and also in any implementation of the IApiRequestHandler - not given by example). Further Information about PLC (Webserver).AsyncWebAppDeployer, WebAppConfigParser.


NET Standard 2.0 and above provides the user with Method calls to the PLC Webserver Api using the HttpClient to make the usage of Api functionalities easier.
