Arc Forumnew | comments | leaders | submitlogin
2 points by conanite 5246 days ago | link | parent

very nice. any reason for (alref (req 'args) "code") instead of (arg req "code") ? (even if token count is a silly metric :))

One thing really confusing me: it looks like it writes the string value of the "code" parameter to the serial port, is that how it's supposed to work? (I notice it's the same in python)



3 points by kens 5246 days ago | link

I didn't think of using arg; that's obviously better.

Yes, the code parameter is written to the serial port, where it is received by the Arduino microcontroller board. This board does the work of generating the IR signal corresponding to the code. The details are at http://arcfn.com/2009/11/controlling-your-stereo-over-web-wi...

-----