ModuleClient.createFromEnvironment Method

Definition

Overloads

createFromEnvironment()

Create a module client instance from your environment variables

createFromEnvironment(IotHubClientProtocol protocol)

Create a module client instance from your environment variables

createFromEnvironment(IotHubClientProtocol protocol, ClientOptions clientOptions)

Create a module client instance from your environment variables

createFromEnvironment()

Create a module client instance from your environment variables

public static ModuleClient createFromEnvironment()

Returns

the created module client instance

Exceptions

if the module client cannot be created

createFromEnvironment(IotHubClientProtocol protocol)

Create a module client instance from your environment variables

public static ModuleClient createFromEnvironment(IotHubClientProtocol protocol)

Parameters

protocol
IotHubClientProtocol

the protocol the module client instance will use

Returns

the created module client instance

Exceptions

if the module client cannot be created

createFromEnvironment(IotHubClientProtocol protocol, ClientOptions clientOptions)

Create a module client instance from your environment variables

public static ModuleClient createFromEnvironment(IotHubClientProtocol protocol, ClientOptions clientOptions)

Parameters

protocol
IotHubClientProtocol

the protocol the module client instance will use

clientOptions
ClientOptions

The options that allow configuration of the module client instance during initialization

Returns

the created module client instance

Exceptions

if the module client cannot be created

Applies to