Skip to content Skip to sidebar Skip to footer

Can't Control The Led By A Single Html File And Johnny Five

I'm newbie for this one. I have found some code to controlling Arduino led by a single html file. They said that we must use the johnny-five and node-js protocol to control it. But

Solution 1:

You run your server on port '8080' but you connect to socket.io on the default port (80). I believe it may be the problem. Try changing the line in html to:

var socket = io.connect('http://localhost:8080');

Also if you have any error in your browser console it would be helpful to show this message.

Post a Comment for "Can't Control The Led By A Single Html File And Johnny Five"