/Websocket-and-Serialport-Template

Send data between your microcontroller and a locally hosted web interface

Primary LanguageJavaScript

Template: Browser <---> Node.js

I set up this template at my previous job, in order to do the following:

  • Arduino sensor readings --> HTML Canvas.
  • HTML buttons --> Node.js/Linux commands

Installation

  1. git clone https://github.com/kristianpedersen/Websocket-and-Serialport-Template.git
  2. cd Websocket-and-Serialport-Template
  3. npm install
  4. node index.js
  5. Enter localhost:3000 in your browser

See index.js for help with Arduino or micro:bit