Skip to content

Thom-x/arduino-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino-api

Simple nodejs module to communicate with arduino using serial and Go server (serial-port-json-server).

Thanks to Johnlauer for his awesome Go server.

Install

Download and run https://github.com/johnlauer/serial-port-json-server :

./serial-port-json-server -v

Then install the module :

npm install arduino-api

Usage

var arduinoApi = require('arduino-api');	// call arduino-api
var API = arduinoApi();						// create our API
API.connect('ws://localhost:8989/ws');		// connect to Arduino
API.send({led : 255},function(resp){       // send json to Arduino
  console.log(resp);                        // log response
});

About

Simple nodejs module to communicate with arduino using serial and Go server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published