Class IotHubDeviceConnection


  • public final class IotHubDeviceConnection
    extends Object
    Information that enables communication between the IoT Hub and the IoT device - allowing this edge module to act as a transparent gateway between the two.
    • Constructor Detail

      • IotHubDeviceConnection

        public IotHubDeviceConnection​(String deviceId)
        Creates an instance of IotHubDeviceConnection class.
        Parameters:
        deviceId - the deviceId value to set.
    • Method Detail

      • getDeviceId

        public String getDeviceId()
        Get the deviceId property: The name of the IoT device configured and managed in IoT Hub. (case-sensitive).
        Returns:
        the deviceId value.
      • getCredentials

        public CredentialsBase getCredentials()
        Get the credentials property: IoT device connection credentials. Currently IoT device symmetric key credentials are supported.
        Returns:
        the credentials value.
      • setCredentials

        public IotHubDeviceConnection setCredentials​(CredentialsBase credentials)
        Set the credentials property: IoT device connection credentials. Currently IoT device symmetric key credentials are supported.
        Parameters:
        credentials - the credentials value to set.
        Returns:
        the IotHubDeviceConnection object itself.