Hey guys.
I need your help.
I want to use some kind of websockets on arduino yun (the linux side) to open a websocket between a webpage (not on arduino, somethwere on the internet) and the yun, an open connection so i can update the page with real time data from yun, or send commands to the yun.
Most of the things I found on the internet are kinda outdated, and doesn't even work most of them.
My question is, from your experience, what is the "best" (the easiest) way of doing that, a bidirectional link between a page and yun.
A library, an 3rd party service, anything that works on yun.
Thanks
Update:
After few days of installing, uninstalling, updating, searchinng for errors, I managed to install lininoIO on the board and run the "blink" example.
var board = new require('/usr/lib/node_modules/ideino-linino-lib').Board();
var led = 1;
board.connect( function(){
board.pinMode("D13", "OUTPUT");
setInterval(function(){
board.digitalWrite("D13", led);
led = 1 - led;
},50);
});
It seems to work preety fast, with no delay as far as I can see.
I have now a way of accesing the board pins from the linux side.
Next step, figure out the websockets thingie, I guess it will be a lot easier to implement it on node.js than on Arduino.
The adventure continues.