예제 #1
0
 def connect_sync(self, service_connection_string):
     self.service_connection_string = service_connection_string
     host = connection_string.connection_string_to_dictionary(
         service_connection_string)["HostName"]
     self.service = IotHubGatewayServiceAPIs("https://" + host).service
 def connect_sync(self, service_connection_string):
     self.cn = connection_string.connection_string_to_sas_token(
         service_connection_string)
     self.service = IotHubGatewayServiceAPIs("https://" +
                                             self.cn["host"]).service