/// <summary>
 /// Create a new nanoleaf client
 /// </summary>
 /// <param name="host">Hostname or IP address of nanoleaf device</param>
 /// <param name="userToken">(Optional) User token to use if authorized</param>
 /// <param name="client">(Optional) Used to pass a shared HttpClient</param>
 public NanoleafClient(string host, string userToken = "", HttpClient client = null)
 {
     _nanoleafHttpClient = new NanoleafHttpClient(host, userToken, client);
     HostName            = host;
 }
Example #2
0
 public NanoleafClient(string host, string userToken)
 {
     _nanoleafHttpClient = new NanoleafHttpClient(host, userToken);
 }