Giter Site home page Giter Site logo

formulahendry / vscode-azure-iot-toolkit Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 3.0 19.73 MB

This extension is now maintained in the Microsoft repo

Home Page: https://github.com/microsoft/vscode-azure-iot-toolkit

TypeScript 100.00%
azure azure-iot iot iothub typescript visual-studio-code vscode vscode-extension

vscode-azure-iot-toolkit's Issues

"The connection string is missing the property: SharedAccessKeyName"

Getting this message when trying to initiate. trying the following format directly copied from the azure portal: HostName=my-azure-hostname.azure-devices.net;ShareAccessKeyName=iothubowner;SharedAccessKey=XXXXXXXXX...=
In settings for "azure-iot-toolkit.iotHubConnectionString" the same string in dubble quotes.

What am I missing here?

D2C message is stringified

Repro

  1. Right-click on a device and tap 'IoT: Send message to IoT Hub'
  2. Send a JSON message, e.g.
    {"__m":{"e":[],"t":[],"l":[]},"d":"00FF","t":"1498085316","cid":"test"}

Expected
JSON message is sent as-is, e.g.
{"__m":{"e":[],"t":[],"l":[]},"d":"00FF","t":"1498085316","cid":"test"}

Actual
JSON message is sent stringified, e.g.
"{\"__m\":{\"e\":[],\"t\":[],\"l\":[]},\"d\":\"00FF\",\"t\":\"1498085316\",\"cid\":test\"}"

I don't know if this is best practice, but it isn't enforced. (At least, we're successfully using IOT Hub without stringifying our payload, and things like routing still work).

Add Code Snippets

  • JavaScript
    • Send D2C message
    • Monitor D2C message
    • C2D message
    • Device Twins
    • Direct methods
  • .NET
  • Java

Please use the latest version of applicationinsights or remove its usage

Hello,

This extension uses 0.21.0 version of applicationInsights which monkey patches the require module. This can have unforeseen consequences in the extension host of VS Code.

Please update to using the latest version 1.0.6 of applicationinsights that has the fix to avoid such monkey patches.

For more details, see microsoft/ApplicationInsights-node.js#425

Since this extension is deprecated, another option is to remove the use of applicationInsights altogether.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.