Coder Social home page Coder Social logo

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

Contributors

virtualamjath avatar

Watchers

 avatar

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.