iot's Introduction
****** Procedure to run the code ********* 1. If we do not have node already installed in the system, install node with node-v8.11.1-x64.msi ( open the windows command promt and type "node" and hit enter. if it shows that the command is not recognized as internal or external command, then node is not installed) 2. After making sure node is installed, open windows command prompt and go to the folder where you have downloaded the provided zip package 3. run the following commands in command prompt from the path of extracted zip file a) npm install azure-iot-device-mqtt azure-iot-device b) open the EdgeToCloud.js file in the folder. Go to line number 27 and give the relevant websocket IP address and port number. var ws = new WebSocket('ws://10.10.96.39:2012/'); /** replace with the ip address of the websocket and port to fetch from PLC ******/ c) run the following command: node EdgeToCloud.js Done ! It will start fetching the data from websocket and start sending to cloud . If websocket is not present it will through error but it will wait until a response is received from the websocket.
iot's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.