Last active
March 5, 2016 05:18
-
-
Save smching/176fcaa6def844ebd672 to your computer and use it in GitHub Desktop.
Wireless Router Remote Control Car
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/lua | |
port= "/dev/ttyUSB0" | |
serialout= io.open(port,"w") --open serial port and prepare to write data | |
str= os.getenv("QUERY_STRING").."\r" -- get message from URL and terminate with carriage return(\r), eg. @2\r | |
serialout:write(str) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment