Azure IoT Device Workbench for Visual Studio Code
Перейти к файлу
yjin81 5b555fa15c
Merge pull request #987 from microsoft/deprecate2PnP
Update the Readme to align with Workbench 0.16.0
2020-08-24 11:22:33 +08:00
.github/workflows update need attention message (#811) 2019-11-11 13:41:24 +08:00
.vscode webpack bundle improvement 2020-04-02 15:27:19 +08:00
__mocks__ test: add test case of diagnostic for PnP IntelliSense (#946) 2020-03-18 08:35:43 +08:00
assets/modelRepository Add prettier 2020-01-13 20:40:05 +08:00
devicedevex_dockerfiles Update docker images iot-device-cube:1.0.4 to use the latest 2019-11-22 SDK 2019-11-22 09:31:48 +08:00
docs docs: update the link of pnp sample files to DTDL v1 2020-05-20 16:26:35 +08:00
hooks add git hooks (#25) 2017-12-25 11:59:38 +08:00
resources bug fix: change from c++17 to gnu++17 in devkit c_cpp_properties.json to fix intellisense issue 2020-08-18 14:22:33 +08:00
scripts fix serialport 2020-03-19 19:12:23 +08:00
src disable pnp function in workbench 2020-08-10 17:39:14 +08:00
syntaxes Merge functions of DigitalTwin authoring and model repository interaction 2019-12-23 16:18:30 +08:00
test migrate from vscode to @type/vscode to resolve security vulnerabilities 2020-08-16 21:36:49 +08:00
views fix: open examples web page has no contents 2020-03-03 16:51:47 +08:00
.eslintignore fix serialport 2020-03-19 19:12:23 +08:00
.eslintrc.json Fix eslint rules 2020-01-13 20:40:05 +08:00
.gitattributes fix serialport 2020-03-19 19:12:23 +08:00
.gitignore webpack bundle improvement 2020-04-02 15:27:19 +08:00
.vscodeignore fix bug for packge usb native .node files 2020-04-16 19:19:12 +08:00
CHANGELOG.md bump to v0.16.0 2020-08-19 14:54:27 +08:00
LICENSE
README.md Fix the review comments from https://github.com/microsoft/vscode-iot-workbench/pull/987 2020-08-24 11:04:07 +08:00
azure-pipelines.yml Change github connection token to use public account 2020-04-20 16:51:22 +08:00
jest.config.js test: add test case for device model manager (#923) 2020-02-21 17:03:29 +08:00
logo.png
package-lock.json Merge branch 'master' into release-v0.16.0 2020-08-19 15:17:55 +08:00
package.json bump to v0.16.0 2020-08-19 14:54:27 +08:00
tsconfig.json disable pnp function in workbench 2020-08-10 17:39:14 +08:00
webpack.config.js webpack bundle improvement 2020-04-02 15:27:19 +08:00

README.md

Azure IoT Device Workbench for Visual Studio Code

Gitter Build Status

Azure IoT Device Workbench extension is now part of Azure IoT Tools extension pack. We highly recommend installing Azure IoT Tools extension pack, which makes it easy to discover and interact with Azure IoT Hub that power your IoT Edge and device applications. This extension pack can help you:

  • Develop and connect your Azure IoT Applications to Azure. With this extension, you can interact with an Azure IoT Hub, manage connected devices, and enable distributed tracing for your Azure IoT applications.
  • Develop and debug Certifies Azure IoT Devices (including MXChip IoT DevKit, ESP32, Raspberry Pi) to Azure. This extension pack makes it easy to code, build, deploy and debug your IoT applications with popular IoT development boards.
  • Develop and deploy artificial intelligence and your custom logic to Azure IoT Edge. This extension pack makes it easy to code, build, deploy, and debug your IoT Edge applications.

Overview

The Azure IoT Device Workbench is a Visual Studio Code extension that provides an integrated environment to code, build, deploy, and debug your IoT device project with multiple Azure services supported.

If you would like to develop device using IoT Plug and Play preview refresh and the Digital Twin Definition Language (DTDL), you could refer to the DTDL extension to get intellisense completion and syntax validation of DTDL.

Get Started

Develop on generic device

Currently the following device platforms and languages are supported in Azure IoT Device Workbench.

Embedded Linux public preview

For Embedded Linux devices, the Device Workbench uses container to simplify the cross-compiling tool chain setup and configuration, which means all cross-compiling work happens in the container.

Languages supported: C/C++

Devices supported: Cortex-A series devices (e.g. Raspberry Pi, NXP i.MX6) that are running embedded Linux such as Debian, Ubuntu or Yocto Linux.

Follow the setup guide to setup the prerequisite including Docker runtime.

Here are a set of tutorials to help you get started:

Arduino

Currently, Device Workbench supports MXChip IoT DevKit and ESP32 DevKits using Arduino. For generic Arduino device, we recommend you use Arduino extension in VS Code.

Languages supported: Arduino C/C++

Devices supported: MXChip IoT DevKit, ESP32.

The Device Workbench relies on Arduino IDE as a dependency to develop on the above devices. If you have installed Device Workbench prior to Arduino IDE, you may need to restart VS Code to make it find the Arduino IDE installation path correctly.

MXChip IoT DevKit

Follow the setup guide to setup the environment including the Arduino extension.

Here are a set of tutorials to help you get started:

ESP32

Follow the setup guide to setup ESP32 device including the Arduino extension.

Here are a set of tutorials to help you get started:

Please take the survey to let us know extra device platforms and languages you want to see support in Device Workbench.

Develop device using IoT Plug and Play

This section is deprecated for Azure IoT Device Workbench 0.16.0 or above.

If you are using Azure IoT Device Workbench extention before 0.16.0, this extension provides an integrated environment to author IoT Plug and Play public preview device capability models (DCM) and interfaces, publish to model repositories, and generate skeleton C code to implement the device application.

Learn how to get started with IoT Plug and Play public preview and use the Device Workbench extension to build an IoT Plug and Play device:

Commands

Generic device development

Command Description
Azure IoT Device Workbench: Create Project... Create new IoT Device Workbench projects.
Azure IoT Device Workbench: Open Examples... Load existing examples of IoT Device Workbench project.
Azure IoT Device Workbench: Provision Azure Services... Provision Azure services for current project.
Azure IoT Device Workbench: Deploy to Azure... Deploy the code of the Azure services.
Azure IoT Device Workbench: Compile Device Code Compile device code.
Azure IoT Device Workbench: Upload Device Code Compile and upload device code.
Azure IoT Device Workbench: Configure Device Settings... Manage the settings on the device.
Azure IoT Device Workbench: Set Workbench Path Set the default path for Azure IoT Device Workbench.
Azure IoT Device Workbench: Help Get help for Azure IoT Device Workbench.

IoT Plug and Play

These commands are deprecated for Azure IoT Device Workbench 0.16.0 or above.

Command Description
IoT Plug and Play: Create Capability Model... Create new IoT Plug and Play device capability model file.
IoT Plug and Play: Create Interface... Create new IoT Plug and Play interface file.
IoT Plug and Play: Generate Device Code Stub... Generate skeleton device code and project based on given device capability model file.
IoT Plug and Play: Open Model Repository... Open Public or Company Model Repository view to manage device model files.
IoT Plug and Play: Submit files to Model Repository... Submit files to model repository.
IoT Plug and Play: Sign out Model Repository Sign out the Company Model Repository.

Documentation

Privacy Statement

The Microsft Enterprise and Developer Privacy Statement describes the privacy statement of this software.

Contributing

There are a couple of ways you can contribute to this repo:

  • Ideas, feature requests and bugs: We are open to all ideas and we want to get rid of bugs! Use the Issues section to either report a new issue, provide your ideas or contribute to existing threads.

  • Documentation: Found a typo or strangely worded sentences? Submit a PR!

  • Code: Contribute bug fixes, features or design changes:

    • Clone the repository locally and open in VS Code.
    • Install TSLint for Visual Studio Code.
    • Open the terminal (press Ctrl + `) and run npm install.
    • To build, press F1 and type in Tasks: Run Build Task.
    • Debug: press F5 to start debugging the extension.
    • Run gts check and gts fix to follow TypeScript style guide.
  • Example: Contribute examples for the supported devices.

    • Create a git repo to host the code of your example project.
    • Write a tutorial to describe how to run the example.
    • Submit a new issue and provide the following information:
      Item Description
      Name Name of the example to be displayed in example gallery.
      Description A short statement to describe the example.
      Location URL of the GitHub repo.
      Image URL of the example image (size: 640*370) shown in the gallery, if not provided, the default image will be used.
      Tutorial URL of tutorial that describes how to run the example.
      Difficulty Difficulty of the example, easy, medium or difficult.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information please see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Contact Us

If you would like to help to build the best IoT experience with Azure IoT Device Workbench, you can reach us directly at Gitter.

Telemetry

VS Code collects usage data and sends it to Microsoft to help improve our products and services. Read our privacy statement to learn more. If you dont wish to send usage data to Microsoft, you can set the telemetry.enableTelemetry setting to false. Learn more in our FAQ.