A class to access functionality from your Asus router.
var config = new AsusConfiguration
{
HostName = "router.asus.com",
UserName = userName,
Password = password
};
var httpClient = new HttpClient();
var service = new AsusService(config, httpClient);
var clients = await service.GetClientsAsync();
Console.WriteLine($"Clients: {clients.Count}");
GetTokenAsync - Gets the authentication token.
GetUptimeAsync - Gets the uptime and time of last boot.
GetMemoryUsageAsync - Gets memory usage statistics.
GetCpuUsageAsync - Gets CPU usage statistics.
GetClientsAsync - Gets info for all of the connected clients.
GetTrafficAsync - Gets the current and total network usage.
GetWanStatusAsync - Gets WAN status information.
GetRouterSettingsAsync - Gets various router settings.
GetLanStatusAsync - Gets LAN status information.
GetDhcpLeaseMacListAsync - Gets a list of DHCP leases given out.
This work is based on the AsusRouterMonitor python library by Leo van der Meulen re-written in C#.