Buy my book, it comes with java script code to do just that J

 

See link below …

 

"No one could make a greater mistake than he who did nothing because he could 
do only a little."

"All that is necessary for the triumph of evil is that good men do nothing" 
Edmond Burke (1729 - 1797)

http://www.packtpub.com/building-a-home-security-system-with-beaglebone/book

 

From: [email protected] [mailto:[email protected]] On 
Behalf Of John Mladenik
Sent: Sunday, November 16, 2014 1:28 AM
To: [email protected]
Subject: [beagleboard] Controling Hardware Through Web Page problem

 

I have tried at least 6 different tutorials to turn an LED on and off through a 
web page.   None of them work and all get one error or another.   

 

The most common one is right after the line

var socket = io.connect();

 Uncaught ReferenceError: io is not defined.   

I followed the instruction to install socket.io 2 or 3 times and think this 
worked successfully.  

 

I did have to change the src line with socket.io.js in it to stop that from 
getting an error and I changed it to

 

<script 
src="192.168.7.2:3000/preview/node_modules/socket.io/node_modules/socket.io-client/socket.io.js">
 </script>

 

I have a new Rev C Beaglebone Black running Debian.  Any suggestion or any link 
or example I can try that can do something as simple as control a GPIO from a 
web page?   

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.



No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5577 / Virus Database: 4213/8579 - Release Date: 11/16/14

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to