Ejemplo n.º 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
Ejemplo n.º 2
0
 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