Shop OBEX P1 Docs P2 Docs Learn Events
Serin/Serout Commands — Parallax Forums

Serin/Serout Commands

dimattdimatt Posts: 5
edited 2005-06-14 14:45 in Learn with BlocklyProp
I am trying to communicate between 2 bs2's using the serin/serout commands. I have the basis of the code done for the transmitter and the reciever.

tranmitter:
SEROUT 0\1, 16468, [noparse][[/noparse]"HELLO!"]

reciever:
SERIN 0\1, 16468, [noparse][[/noparse]variableName]

Basically for this to workout between two stamps and have the recieving stamp display the message would i only have to set the reciever code in a loop with the debug command?

So far i have been using this package as a guide: http://www.parallax.com/dl/docs/cols/nv/vol1/col/nv16.pdf

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-06-14 14:45
    The help file has a fully-coded example (see SERIN or SEROUT) that shows how to handle that situation. And yes, unless you're using an array, the receiver will have to loop to receive the string from the transmitter.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.