Azure IoT Edge for Visual Studio Code
Перейти к файлу
Jun Han 376aa7ac47 Update logo 2017-11-10 12:58:57 +08:00
.vscode First commit 2017-08-28 15:32:09 +08:00
assets Generate deployment.json, routes.json; Create Deployment; Launch Edge Runtime 2017-09-04 17:16:55 +08:00
images Add debug instruction 2017-09-06 15:45:39 +08:00
src Handle Linux shell on Windows, add quotes for dotnet publish (#6) 2017-10-26 15:24:27 +08:00
test Enable CI 2017-08-28 15:43:28 +08:00
.gitignore First commit 2017-08-28 15:32:09 +08:00
.travis.yml Enable CI 2017-08-28 15:43:28 +08:00
.vscodeignore Update README 2017-09-06 15:21:49 +08:00
CHANGELOG.md First commit 2017-08-28 15:32:09 +08:00
README.md Fix typos (#1) 2017-09-11 16:34:58 +08:00
logo.png Update logo 2017-11-10 12:58:57 +08:00
package-lock.json Merge upstream changes 2017-10-13 18:41:08 +08:00
package.json Debug IoT Edge Function Module (#9) 2017-11-09 16:15:16 +08:00
tsconfig.json First commit 2017-08-28 15:32:09 +08:00
tslint.json Enable CI 2017-08-28 15:43:28 +08:00

README.md

Azure IoT Edge

Prerequisites

Commnads

Press F1 or Ctrl + Shift + P to open command palette, type Edge: to see all the commands:

commands

Message template authoring

Go to Dummy JSON for reference.

Sample of deployment.json

{
    "modules": {
        "filter2": {
            "name": "filter2",
            "version": "1.0",
            "type": "docker",
            "status": "running",
            "config": {
                "image": "127.0.0.1:5000/filtermodule2",
                "tag": "latest",
                "env": {}
            }
        },
        "input-simulator": {
            "name": "input-simulator",
            "version": "1.0",
            "type": "docker",
            "status": "running",
            "config": {
                "image": "formulahendry/iot-edge-input-simulator",
                "tag": "latest",
                "env": {}
            }
        },
        "output-simulator": {
            "name": "output-simulator",
            "version": "1.0",
            "type": "docker",
            "status": "running",
            "config": {
                "image": "formulahendry/iot-edge-output-simulator",
                "tag": "latest",
                "env": {}
            }
        }
    }
}

Sample of routes.json

{
    "routes": [
        "FROM /messages/modules/input-simulator/outputs/MessageGeneratorOutput INTO BrokeredEndpoint(\"/modules/filter2/inputs/input1\")",
        "FROM /messages/modules/filter2/outputs/alertOutput INTO BrokeredEndpoint(\"/modules/output-simulator/inputs/input1\")"
    ]
}

Debug .NET Core Module

  1. Open the Module folder in VS Code

  2. Press F5 and select Edge Debug (.NET Core), then a launch.json file will be created in .vscode folder

    debug-config

  3. In launch.json, replace <container_name> with your real container name

  4. Press F5 again and select the right process (dotnet ***.dll) to attach

    select-process

Repo for simulator Modules

See https://github.com/azure/edge-module-debug