Skip to content

Commit d5e17f1

Browse files
committed
Edits
1 parent 1fbd365 commit d5e17f1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

includes/iot-hub-howto-cloud-to-device-messaging-dotnet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ You can connect a backend service to IoT Hub using the following methods:
184184

185185
#### Connect using a shared access policy
186186

187-
### Supply the connection string
187+
##### Supply the connection string
188188

189189
Connect a backend application to a device using [CreateFromConnectionString](/dotnet/api/microsoft.azure.devices.serviceclient.createfromconnectionstring). In addition to the required IoT Hub primary connection string, the `CreateFromConnectionString` method can be overloaded to include these *optional* parameters:
190190

includes/iot-hub-howto-cloud-to-device-messaging-java.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,11 @@ import com.microsoft.azure.sdk.iot.device.transport.IotHubConnectionStatus;
2828

2929
A device app can authenticate with IoT Hub using the following methods:
3030

31-
* X.509 certificate
3231
* Shared access key
32+
* X.509 certificate
3333

3434
[!INCLUDE [iot-authentication-device-connection-string.md](iot-authentication-device-connection-string.md)]
3535

36-
#### Authenticate using an X.509 certificate
37-
38-
[!INCLUDE [iot-hub-howto-auth-device-cert-java](iot-hub-howto-auth-device-cert-java.md)]
39-
4036
#### Authenticate using a shared access key
4137

4238
The [DeviceClient](/java/api/com.microsoft.azure.sdk.iot.device.deviceclient?#com-microsoft-azure-sdk-iot-device-deviceclient-deviceclient(java-lang-string-com-microsoft-azure-sdk-iot-device-iothubclientprotocol)) object instantiation requires these parameters:
@@ -57,6 +53,10 @@ static protocol = IotHubClientProtocol.AMQPS;
5753
DeviceClient client = new DeviceClient(connectionString, protocol);
5854
```
5955

56+
#### Authenticate using an X.509 certificate
57+
58+
[!INCLUDE [iot-hub-howto-auth-device-cert-java](iot-hub-howto-auth-device-cert-java.md)]
59+
6060
### Set the message callback method
6161

6262
Use the [setMessageCallback](/java/api/com.microsoft.azure.sdk.iot.device.deviceclient?com-microsoft-azure-sdk-iot-device-deviceclient-setmessagecallback(com-microsoft-azure-sdk-iot-device-messagecallback-java-lang-object)) method to define a message handler method that is notified when a message is received from IoT Hub.

0 commit comments

Comments
 (0)