Any code for bs2 using serial data?
Hi guys got a web site with php sending data to the /dev/ttyusb0, a character c for centigrade & an f for farenheit. I want the bs2 board to use this value from its serial port to respond with one section of code for f & another for C. I know you use an If statement & the serin & serout commands but cant get my head round the bs2 help files. Some code doing a similar type of thing would be greatly appreciated.
thanks for your patience with me guys.
thanks for your patience with me guys.

Comments
x var byte do ' loop forever serin <pin>,<baud>,[noparse][[/noparse] x] ' wait for a single byte select x case = "f" ' is it "f" case = "C" ' is it "C" endselect loop ' ignore if neitherCheck the SELECT statement for other CASE formats and an "other" clause. Note that the SERIN
will wait for a character. If you need some kind of timeout, the SERIN statement has an optional
timeout.