Skip to content

Commit d59f180

Browse files
committed
Edits
1 parent d383ba0 commit d59f180

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

includes/iot-hub-howto-auth-device-cert-node.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The X.509 certificate is attached to the device-to-IoT Hub connection transport.
1515

1616
To configure a device-to-IoT Hub connection using an X.509 certificate:
1717

18-
1. Call [fromConnectionString](/javascript/api/azure-iothub/client?#azure-iothub-client-fromconnectionstring) to add the device connection string and transport type. Add `x509=true` to the device connection string to indicate that a certificate will be added to `DeviceClientOptions`. For example: `HostName=xxxxx.azure-devices.net;DeviceId=Device-1;SharedAccessKey=xxxxxxxxxxxxx;x509=true`.
18+
1. Call [fromConnectionString](/javascript/api/azure-iothub/client?#azure-iothub-client-fromconnectionstring) to add the device connection string and transport type. Add `x509=true` to the device connection string to indicate that a certificate is added to `DeviceClientOptions`. For example: `HostName=xxxxx.azure-devices.net;DeviceId=Device-1;SharedAccessKey=xxxxxxxxxxxxx;x509=true`.
1919
1. Configure a JSON variable with certificate details and pass it to [DeviceClientOptions](/javascript/api/azure-iot-device/deviceclientoptions).
2020
1. Call [setOptions](/javascript/api/azure-iot-device/client?#azure-iot-device-client-setoptions-1) to add an X.509 certificate and key (and optionally, passphrase) to the client transport.
2121
1. Call [open](/javascript/api/azure-iothub/client?#azure-iothub-client-open) to open the connection from the device to IoT Hub.

includes/iot-hub-howto-file-upload-node.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ The [azure-iot-device](/javascript/api/azure-iot-device) package contains object
3131

3232
Follow this procedure to upload a file from a device to IoT hub:
3333

34-
1. Get Blob shared access signatures
34+
1. Connect the device to IoT Hub
35+
1. Get a Blob shared access signature (SAS) token from IoT Hub
3536
1. Upload the file to Azure Storage
3637
1. Send file upload status notification to IoT hub
3738

@@ -128,7 +129,7 @@ client.open(function(err) {
128129
})
129130
```
130131

131-
#### Get a SAS URI from IoT hub
132+
#### Get a SAS token from IoT hub
132133

133134
Use [getBlobSharedAccessSignature](/javascript/api/azure-iot-device/client?#azure-iot-device-client-getblobsharedaccesssignature) to get the linked storage account SAS token from IoT hub.
134135

@@ -269,7 +270,7 @@ var client = Client.fromConnectionString(connectionString);
269270

270271
To create a file upload notification callback receiver:
271272

272-
1. Call [getFileNotificationReceiver](/javascript/api/azure-iothub/client?#azure-iothub-client-getfilenotificationreceiver). Supply the name of a file upload callback method that are called when notification messages are received.
273+
1. Call [getFileNotificationReceiver](/javascript/api/azure-iothub/client?#azure-iothub-client-getfilenotificationreceiver). Supply the name of a file upload callback method that is called when notification messages are received.
273274
1. Process file upload notifications in the callback method.
274275

275276
This example sets up a `receiveFileUploadNotification` notification callback receiver. The receiver interprets the file upload status information and prints a status message to the console.

includes/iot-hub-howto-file-upload-python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ A device app can authenticate with IoT Hub using the following methods:
5454
To connect a device to IoT Hub:
5555

5656
1. Call [create_from_connection_string](/python/api/azure-iot-device/azure.iot.device.iothubdeviceclient?#azure-iot-device-iothubdeviceclient-create-from-connection-string) to add the device primary connection string.
57-
1. Call [connect](/python/api/azure-iot-device/azure.iot.device.iothubdeviceclient?#azure-iot-device-iothubdeviceclient-connect) to connect the device client
57+
1. Call [connect](/python/api/azure-iot-device/azure.iot.device.iothubdeviceclient?#azure-iot-device-iothubdeviceclient-connect) to connect the device client.
5858

5959
For example:
6060

0 commit comments

Comments
 (0)