1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// ...
 
using (var nusbio = new Nusbio(
                      serialNumber: serialNumber,
                      webServerPort: 1964))
{
    nusbio.UrlEvent += LDeviceUrlEvent;
    Cls(nusbio);
    while (nusbio.Loop())
    {
    }
}
 
// ...
 
static void LDeviceUrlEvent(string message)
{
    ConsoleEx.Bar(0, 12, "Http Request:{0}".FormatString(message),
                  ConsoleColor.Cyan, ConsoleColor.DarkCyan);
}
 
// ...