static void Main(string[] args)
{
var portName = System.IO.Ports.SerialPort.GetPortNames().Where(element => element != "COM1").First();
var controller = new ZWaveController("COM3");
// netsh http add urlacl url=http://+:80/ user=Everyone
// http://localhost:80/api/v1.0/controller/nodes/19/basic/get/
//controller.Channel.Log = Console.Out;
controller.Open();
try
{
Run(controller).Wait();
}
catch (AggregateException ex)
{
foreach (var inner in ex.InnerExceptions)
{
LogMessage($"{inner}");
}
}
catch (Exception ex)
{
LogMessage($"{ex}");
}
finally
{
Console.ReadLine();
controller.Close();
}
}