Any code for bs2 using serial data?
boonboy
Posts: 10
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
Check 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.