private async Task <HttpResponseMessage> executeMsg(object sensorMessage)
        {
            HueCommand cmd = sensorMessage as HueCommand;

            if (cmd == null)
            {
                throw new IotApiException("Unknown command specified.");
            }

            HttpResponseMessage response = null;

            var httpClient = GetHttpClient(m_GatewayUrl);

            if (cmd.Method == "get")
            {
                response = await httpClient.GetAsync(getUri(cmd));
            }
            else if (cmd.Method == "post")
            {
                //httpClient.GetAsync(getUri(cmd));
            }
            else if (cmd.Method == "put")
            {
            }

            return(response);
        }
 private string getUri(HueCommand cmd)
 {
     return($"/{m_ApiSuffix}/{m_UserName}/{cmd.Path}");
 }