diff --git a/README.md b/README.md index 907ea59..024223b 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ The [Wiki page](https://github.com/Microsoft/vscode-azure-iot-toolkit/wiki) incl * Send D2C message to IoT Hub * Monitor Built-in Event Endpoint * Send C2D message to device - * Monitor C2D message from IoT Hub + * Receive C2D message from IoT Hub * Invoke Device Direct Method * Edit Device Twin * Manage Azure IoT distributed tracing diff --git a/package.nls.ja.json b/package.nls.ja.json index d7cdba6..cb0f5d6 100644 --- a/package.nls.ja.json +++ b/package.nls.ja.json @@ -4,8 +4,8 @@ "azure-iot-toolkit.command.startMonitorIoTHubMessageWithAbbreviation.title": "モニターを開始", "azure-iot-toolkit.command.stopMonitorIoTHubMessage.title": "ビルトインエンドポイントのモニターを停止", "azure-iot-toolkit.command.sendC2DMessage.title": "デバイスへC2Dメッセージを送信", - "azure-iot-toolkit.command.startMonitorC2DMessage.title": "C2Dメッセージのモニターを開始", - "azure-iot-toolkit.command.stopMonitorC2DMessage.title": "C2Dメッセージのモニターを停止", + "azure-iot-toolkit.command.startMonitorC2DMessage.title": "C2Dメッセージの受信を開始", + "azure-iot-toolkit.command.stopMonitorC2DMessage.title": "C2Dメッセージの受信を停止", "azure-iot-toolkit.command.listDevice.title": "デバイス一覧を表示", "azure-iot-toolkit.command.createDevice.title": "デバイスを作成", "azure-iot-toolkit.command.deleteDevice.title": "デバイスを削除", diff --git a/package.nls.json b/package.nls.json index e7ab5f5..075ca80 100644 --- a/package.nls.json +++ b/package.nls.json @@ -7,8 +7,8 @@ "azure-iot-toolkit.command.startMonitorIoTHubMessageWithAbbreviation.title": "Start Monitoring", "azure-iot-toolkit.command.stopMonitorIoTHubMessage.title": "Stop Monitoring Built-in Event Endpoint", "azure-iot-toolkit.command.sendC2DMessage.title": "Send C2D Message to Device", - "azure-iot-toolkit.command.startMonitorC2DMessage.title": "Start Monitoring C2D Message", - "azure-iot-toolkit.command.stopMonitorC2DMessage.title": "Stop Monitoring C2D Message", + "azure-iot-toolkit.command.startMonitorC2DMessage.title": "Start Receiving C2D Message", + "azure-iot-toolkit.command.stopMonitorC2DMessage.title": "Stop Receiving C2D Message", "azure-iot-toolkit.command.listDevice.title": "List Devices", "azure-iot-toolkit.command.createDevice.title": "Create Device", "azure-iot-toolkit.command.deleteDevice.title": "Delete Device", diff --git a/src/iotHubC2DMessageExplorer.ts b/src/iotHubC2DMessageExplorer.ts index 3b8ad6f..69501fc 100644 --- a/src/iotHubC2DMessageExplorer.ts +++ b/src/iotHubC2DMessageExplorer.ts @@ -17,7 +17,7 @@ export class IotHubC2DMessageExplorer extends IoTHubMessageBaseExplorer { private _deviceClient: Client; constructor(outputChannel: vscode.OutputChannel) { - super(outputChannel, "$(primitive-square) Stop Monitoring C2D Message", "azure-iot-toolkit.stopMonitorC2DMessage"); + super(outputChannel, "$(primitive-square) Stop Receiving C2D Message", "azure-iot-toolkit.stopMonitorC2DMessage"); } public async sendC2DMessage(deviceItem?: DeviceItem) { @@ -36,7 +36,7 @@ export class IotHubC2DMessageExplorer extends IoTHubMessageBaseExplorer { public async startMonitorC2DMessage(deviceItem?: DeviceItem) { if (this._isMonitoring) { this._outputChannel.show(); - this.outputLine(Constants.IoTHubC2DMessageMonitorLabel, "There is a running job to monitor C2D message. Please stop it first."); + this.outputLine(Constants.IoTHubC2DMessageMonitorLabel, "There is a running job to receive C2D message. Please stop it first."); return; } @@ -55,7 +55,7 @@ export class IotHubC2DMessageExplorer extends IoTHubMessageBaseExplorer { TelemetryClient.sendEvent(Constants.IoTHubAIStopMonitorC2DEvent); this._outputChannel.show(); if (this._isMonitoring) { - this.outputLine(Constants.IoTHubC2DMessageMonitorLabel, "C2D monitoring stopped."); + this.outputLine(Constants.IoTHubC2DMessageMonitorLabel, "C2D receiving stopped."); this._monitorStatusBarItem.hide(); this._deviceClient.close(() => { this.updateMonitorStatus(false); }); } else { @@ -89,7 +89,7 @@ export class IotHubC2DMessageExplorer extends IoTHubMessageBaseExplorer { } else { this.updateMonitorStatus(true); let deviceId = ConnectionString.parse(deviceConnectionString).DeviceId; - this.outputLine(Constants.IoTHubC2DMessageMonitorLabel, `Start monitoring C2D message for [${deviceId}]...`); + this.outputLine(Constants.IoTHubC2DMessageMonitorLabel, `Start receiving C2D message for [${deviceId}]...`); TelemetryClient.sendEvent(Constants.IoTHubAIStartMonitorC2DEvent); this._deviceClient.on("message", (msg) => { this.outputLine(Constants.IoTHubC2DMessageMonitorLabel, "Message Received: " + msg.getData());