Shop OBEX P1 Docs P2 Docs Learn Events
Using Beau Schwabe's 433 MHz RF Transceiver Object — Parallax Forums

Using Beau Schwabe's 433 MHz RF Transceiver Object

SELSEL Posts: 80
edited 2011-07-08 11:32 in Propeller 1
I am trying to transmit and receive in the same method, but I am not able to if I RF.Send or RF.Receive first one or the other methods will not work for me. Here is my code. I hope someone can help me with this problem.

VAR
byte Receive_Buffer[1]

PUB TX_Main
RF.Initialize(PacketLength)
dira[LED_PIN]~~
outa[LED_PIN] := 1

Receive_Buffer[0] := 65
Receive_Buffer[1] := 66
Receive_Buffer := 0

repeat
RF.PutTXString(String("Hello World"))
RF.Send
waitcnt(clkfreq + cnt)
RF.Receive
RF.GetRXString(@Receive_Buffer)
if Receive_Buffer > 0
quit

outa[LED_PIN] := 0
repeat

Comments

  • SELSEL Posts: 80
    edited 2011-07-08 11:32
    I have solved this problem on my own.

    anyone who wishes to receive the code for both Tx and Rx email me at: slindojr@msn.com and I will set the zipped files to them.
Sign In or Register to comment.