-
Notifications
You must be signed in to change notification settings - Fork 15
DeviceInfoClient
inflames2k edited this page May 24, 2018
·
3 revisions
The DeviceInfoClient interacts with the DeviceInfo-service of the Fritz!Box or devices of other vendors implementing the service.
The client allows to get device informations, the device error log and the security port. The security port can be called without authentication.
The method GetDeviceInfoAsync calls the soap action "GetInfo" of the DeviceInfo-service and returns the retrieved result.
Usage example:
DeviceInfoClient client = new DeviceInfoClient ("https://fritz.box", 10000, username, password);
DeviceInfo info = await client.GetDeviceInfoAsync();The method GetDeviceLogAsync calls the soap action "GetDeviceLog" of the DeviceInfo-service and returns the retrieved log entries.
Usage example:
DeviceInfoClient client = new DeviceInfoClient ("https://fritz.box", 10000, username, password);
IEnumerable<string> logentries = await client.GetDeviceLogAsync();The method GetSecurityPortAsync calls the soap action "GetSecurityPort" of the DeviceInfo-service and returns the port for SSL-Access. The method can be called without authentication.
DeviceInfoClient client = new DeviceInfoClient ("https://fritz.box", 10000);
UInt16 securityPort = await client.GetSecurityPortAsync();