Change name
This commit is contained in:
Родитель
a38301639a
Коммит
7b199f4653
10
README.md
10
README.md
|
@ -1,4 +1,4 @@
|
|||
# Code Runner
|
||||
# Azure IoT Toolkit
|
||||
|
||||
Toolkit makes Azure IoT Development easier
|
||||
|
||||
|
@ -37,21 +37,21 @@ Toolkit makes Azure IoT Development easier
|
|||
To set the Device Connection String which is used to send device-to-cloud message:
|
||||
```json
|
||||
{
|
||||
"azure-iot-explorer.deviceConnectionString": "HostName=<my-hub>.azure-devices.net;DeviceId=<known-device-id>;SharedAccessKey=<known-device-key>"
|
||||
"azure-iot-toolkit.deviceConnectionString": "HostName=<my-hub>.azure-devices.net;DeviceId=<known-device-id>;SharedAccessKey=<known-device-key>"
|
||||
}
|
||||
```
|
||||
|
||||
To set the IoT Hub Connection String to monitor device-to-cloud message:
|
||||
```json
|
||||
{
|
||||
"azure-iot-explorer.iotHubConnectionString": "HostName=<my-hub>.azure-devices.net;SharedAccessKeyName=<my-policy>;SharedAccessKey=<my-policy-key>"
|
||||
"azure-iot-toolkit.iotHubConnectionString": "HostName=<my-hub>.azure-devices.net;SharedAccessKeyName=<my-policy>;SharedAccessKey=<my-policy-key>"
|
||||
}
|
||||
```
|
||||
|
||||
To set the IoT Hub Consumer Group (default is "$Default"):
|
||||
```json
|
||||
{
|
||||
"azure-iot-explorer.consumerGroup": "$Default"
|
||||
"azure-iot-toolkit.consumerGroup": "$Default"
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -59,7 +59,7 @@ To set the IoT Hub Consumer Group (default is "$Default"):
|
|||
By default, anonymous telemetry data collection is turned on to understand user behavior to improve this extension. To disable it, update the settings.json as below:
|
||||
```json
|
||||
{
|
||||
"azure-iot-explorer.enableAppInsights": false
|
||||
"azure-iot-toolkit.enableAppInsights": false
|
||||
}
|
||||
```
|
||||
|
||||
|
|
36
package.json
36
package.json
|
@ -28,52 +28,52 @@
|
|||
"url": "https://github.com/formulahendry/vscode-azure-iot-toolkit.git"
|
||||
},
|
||||
"activationEvents": [
|
||||
"onCommand:azure-iot-explorer.sendD2CMessage",
|
||||
"onCommand:azure-iot-explorer.startMonitoringMessage"
|
||||
"onCommand:azure-iot-toolkit.sendD2CMessage",
|
||||
"onCommand:azure-iot-toolkit.startMonitoringMessage"
|
||||
],
|
||||
"main": "./out/src/extension",
|
||||
"contributes": {
|
||||
"commands": [
|
||||
{
|
||||
"command": "azure-iot-explorer.sendD2CMessage",
|
||||
"command": "azure-iot-toolkit.sendD2CMessage",
|
||||
"title": "Send message to IoT Hub"
|
||||
},
|
||||
{
|
||||
"command": "azure-iot-explorer.startMonitoringMessage",
|
||||
"command": "azure-iot-toolkit.startMonitoringMessage",
|
||||
"title": "Start monitoring"
|
||||
},
|
||||
{
|
||||
"command": "azure-iot-explorer.stopMonitoringMessage",
|
||||
"command": "azure-iot-toolkit.stopMonitoringMessage",
|
||||
"title": "Stop monitoring"
|
||||
}
|
||||
],
|
||||
"keybindings": [
|
||||
{
|
||||
"command": "azure-iot-explorer.sendD2CMessage",
|
||||
"command": "azure-iot-toolkit.sendD2CMessage",
|
||||
"key": "ctrl+alt+f9"
|
||||
},
|
||||
{
|
||||
"command": "azure-iot-explorer.startMonitoringMessage",
|
||||
"command": "azure-iot-toolkit.startMonitoringMessage",
|
||||
"key": "ctrl+alt+f10"
|
||||
},
|
||||
{
|
||||
"command": "azure-iot-explorer.stopMonitoringMessage",
|
||||
"command": "azure-iot-toolkit.stopMonitoringMessage",
|
||||
"key": "ctrl+alt+f11"
|
||||
}
|
||||
],
|
||||
"menus": {
|
||||
"editor/context": [
|
||||
{
|
||||
"command": "azure-iot-explorer.sendD2CMessage",
|
||||
"group": "azure-iot-explorer"
|
||||
"command": "azure-iot-toolkit.sendD2CMessage",
|
||||
"group": "azure-iot-toolkit"
|
||||
},
|
||||
{
|
||||
"command": "azure-iot-explorer.startMonitoringMessage",
|
||||
"group": "azure-iot-explorer"
|
||||
"command": "azure-iot-toolkit.startMonitoringMessage",
|
||||
"group": "azure-iot-toolkit"
|
||||
},
|
||||
{
|
||||
"command": "azure-iot-explorer.stopMonitoringMessage",
|
||||
"group": "azure-iot-explorer"
|
||||
"command": "azure-iot-toolkit.stopMonitoringMessage",
|
||||
"group": "azure-iot-toolkit"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -81,22 +81,22 @@
|
|||
"type": "object",
|
||||
"title": "Azure IoT Explorer configuration",
|
||||
"properties": {
|
||||
"azure-iot-explorer.deviceConnectionString": {
|
||||
"azure-iot-toolkit.deviceConnectionString": {
|
||||
"type": "string",
|
||||
"default": "<<insert your Device Connection String>>",
|
||||
"description": "Device Connection String"
|
||||
},
|
||||
"azure-iot-explorer.iotHubConnectionString": {
|
||||
"azure-iot-toolkit.iotHubConnectionString": {
|
||||
"type": "string",
|
||||
"default": "<<insert your IoT Hub Connection String>>",
|
||||
"description": "IoT Hub Connection String"
|
||||
},
|
||||
"azure-iot-explorer.consumerGroup": {
|
||||
"azure-iot-toolkit.consumerGroup": {
|
||||
"type": "string",
|
||||
"default": "$Default",
|
||||
"description": "IoT Hub Consumer Group"
|
||||
},
|
||||
"azure-iot-explorer.enableAppInsights": {
|
||||
"azure-iot-toolkit.enableAppInsights": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Whether to enable AppInsights to track anonymous telemetry data."
|
||||
|
|
|
@ -5,15 +5,15 @@ import { AzureIoTExplorer } from './azureIoTExplorer';
|
|||
export function activate(context: vscode.ExtensionContext) {
|
||||
let azureIoTExplorer = new AzureIoTExplorer();
|
||||
|
||||
let sendD2CMessage = vscode.commands.registerCommand('azure-iot-explorer.sendD2CMessage', () => {
|
||||
let sendD2CMessage = vscode.commands.registerCommand('azure-iot-toolkit.sendD2CMessage', () => {
|
||||
azureIoTExplorer.sendD2CMessage();
|
||||
});
|
||||
|
||||
let startMonitoringMessage = vscode.commands.registerCommand('azure-iot-explorer.startMonitoringMessage', () => {
|
||||
let startMonitoringMessage = vscode.commands.registerCommand('azure-iot-toolkit.startMonitoringMessage', () => {
|
||||
azureIoTExplorer.startMonitoringMessage();
|
||||
});
|
||||
|
||||
let stopMonitoringMessage = vscode.commands.registerCommand('azure-iot-explorer.stopMonitoringMessage', () => {
|
||||
let stopMonitoringMessage = vscode.commands.registerCommand('azure-iot-toolkit.stopMonitoringMessage', () => {
|
||||
azureIoTExplorer.stopMonitoringMessage();
|
||||
});
|
||||
|
||||
|
|
|
@ -7,6 +7,6 @@ export class Utility {
|
|||
}
|
||||
|
||||
static getConfiguration(): vscode.WorkspaceConfiguration {
|
||||
return vscode.workspace.getConfiguration('azure-iot-explorer');
|
||||
return vscode.workspace.getConfiguration('azure-iot-toolkit');
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче