To interface through a web server we recommend creating a nodejs server (optionally you could do the same through python). In this repository you will find examples for creating a server with nodejs (client interacts through the webpage, and server sends commands to EMS machine) and also a nodejs script that directly controls the stimulator (without a web server).
- Get nodejs
- install the dependencies by running the following command:
npm install
. Alternatively it would be the same as installing these three packages below manually.npm install serialport
(for USB communication)npm install express
(for the web server side)npm install body-parser
(for the web server side)
- run your example on the command line by typing:
nodejs nameofapp.js
- (if you are running a web server) open http://localhost:3000 on your browser. You will see:
- Fushimi Ryohei fushimi.ryohei@gmail.com (node.js fixes)
Please refer to the liability waiver (in documentation/liability_waiver.md).
Please refer to the license (in /license.md)