SendMessage connection

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
mcsummation
Posts: 220
Joined: 23 Jan 2012, 17:07
Location: Round Rock, TX

SendMessage connection

Post 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.
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: SendMessage connection

Post 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
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests