Skip to content

Commit

Permalink
chore (azure-iothub): Correct documentation and debug statements. (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyvercolano authored Dec 16, 2019
1 parent 55559b5 commit 71c37f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions service/src/amqp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class Amqp extends EventEmitter implements Client.Transport {
});

this._c2dErrorListener = (err) => {
debug('Error on the D2C link: ' + err.toString());
debug('Error on the C2D link: ' + err.toString());
this._c2dLink = null;
};

Expand Down Expand Up @@ -158,7 +158,7 @@ export class Amqp extends EventEmitter implements Client.Transport {
callback();
},
amqpError: (err) => {
debug('error received while disconnected. likely a bug?');
debug('Late arriving error received while in disconnected state.');
if (err) {
debug(err.toString());
}
Expand Down Expand Up @@ -349,7 +349,7 @@ export class Amqp extends EventEmitter implements Client.Transport {
if (detachErr) {
debug('error detaching the message feedback link: ' + detachErr.toString());
} else {
debug('D2C link detached');
debug('feedback link detached');
}
tmpFeedbackReceiver.removeListener('error', this._feedbackErrorListener);
if (!finalError && detachErr) {
Expand Down Expand Up @@ -377,7 +377,7 @@ export class Amqp extends EventEmitter implements Client.Transport {
if (detachErr) {
debug('error detaching the file upload notification link: ' + detachErr.toString());
} else {
debug('D2C link detached');
debug('File notification link detached');
}
tmpFileNotificationReceiver.removeListener('error', this._fileNotificationErrorListener);
if (!finalError && detachErr) {
Expand Down
2 changes: 1 addition & 1 deletion service/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const MAX_RETRY_TIMEOUT = 240000; // 4 minutes
/**
* The IoT Hub service client is used to communicate with devices through an Azure IoT hub.
* It lets the SDK user:
* - send device-to-cloud (also known as commands) to devices: commands are queued on IoT Hub and delivered asynchronously only when the device is connected. Only 50 commands can be queued per device.
* - send cloud-to-device (also known as commands) to devices: commands are queued on IoT Hub and delivered asynchronously only when the device is connected. Only 50 commands can be queued per device.
* - invoke direct methods on devices (which will work only if the device is currently connected: it's a synchronous way of communicating with the device)
* - listen for feedback messages sent by devices for previous commands.
* - listen for file upload notifications from devices.
Expand Down

0 comments on commit 71c37f9

Please sign in to comment.