Page 1 of 1

SendMessage connection

Posted: 14 Mar 2012, 01:02
by mcsummation
Alright, I give up!

I am trying to do a SendMessage to get a message sent to a slave. I have the SendResponse... running. I also have the ReceiveRemote... running. However, I can't figure out what to do with the Connection Number on a SendRemote... The other 2 don't have connection numbers passed into them. The SendMessage doesn't have a place for the connection number. Nothing I have been able to think of has worked. HELP!


Edit: I finally found it. The thing I found is __sendRemoteString(conn, queue, _local_buffer, cError). There's probably a non-NBC way of doing it, but this works. I'm now throwing floats back and forth between the 2 NXTs. I had already gotten the floats to flow between an NXT and PC.

Re: SendMessage connection

Posted: 14 Mar 2012, 04:26
by afanofosc
SendRemote* as I have mentioned before on these forums is how a master sends a message to a slave.

SendResponse* is how a slave response to a master request for information.

ReceiveRemote* is how both a slave and a master read a mailbox to see what a master or slave has sent.

John Hansen