Skip to content

DeviceInfoClient

inflames2k edited this page May 24, 2018 · 3 revisions

Description

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.

Method overview

GetDeviceInfoAsync

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();

GetDeviceLogAsync

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();

GetSecurityPortAsync

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();

Clone this wiki locally