ChrisD
ChrisD

Reputation: 102

Connect Arduino to nodejs server using websocket

First, I have : - An autonomous arduino (battery + wifi shield) - A nodejs server + socket.io module

I want to connect my Arduino to the nodejs server and add real time possibilities. I don't know if is possible to use websocket on arduino's side (client side) like in a browser like chrome to allow the server side to call a method on client side with something like :

socket.on(myMethod,...)

I saw libraries like noduino of jhonny-five but always using serial port (with usb).

Upvotes: 1

Views: 9547

Answers (1)

mEbert
mEbert

Reputation: 254

Using Socket.IO Arduino Client, yes you can. https://github.com/billroy/socket.io-arduino-client

Upvotes: 5

Related Questions