formulahendry / vscode-azure-iot-toolkit Goto Github PK
View Code? Open in Web Editor NEWThis extension is now maintained in the Microsoft repo
Home Page: https://github.com/microsoft/vscode-azure-iot-toolkit
This extension is now maintained in the Microsoft repo
Home Page: https://github.com/microsoft/vscode-azure-iot-toolkit
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?
Performance
azure-iot-toolkit
0.1.8
Linux x64 4.15.0-48-generic
1.33.1
/home/anwer/formulahendry.azure-iot-toolkit-unresponsive.cpuprofile.txt
Find more details here: https://github.com/Microsoft/vscode/wiki/Explain:-extension-causes-high-cpu-load
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-device-twins
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-node-node-twin-how-to-configure
Repro
{"__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).
Could show device connection string (if primary key is not null)
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!
MQTT by default.
User could set protocol in VS Code settings.json
I didnt configure it, just installed it
this thing should be disabled by default, so it doesn't try to connect
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-direct-methods
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-node-node-direct-methods
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-node-node-c2d
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.