View unanswered posts | View active topics It is currently Mon Sep 21, 2020 3:48 pm






Reply to topic  [ 3 posts ] 
My Bluetooth Code Won't compile 
Author Message
Rookie

Joined: Mon Aug 20, 2007 4:01 am
Posts: 28
Post My Bluetooth Code Won't compile
Hello,

Can anyone say what is wrong with this:
Code:
#pragma platform(NXT)

task main () {
  setBluetoothOn();
  cCmdBTPurgeRcvBuffer();
  while (message != 0){ ClearMessage(); }

  while (true) {
    if (bQueuedMsgAvailable() ) {     
      eraseDisplay ();
      nxtDisplayCenteredTextLine (3,"%d",messageParm[0]);
      ClearMessage ();
    }
    wait1Msec (500);
  } 
}


I get these errors:
Code:
**Error**:Undefined variable 'message'. 'short' assumed.
**Info***:Undefined procedure 'ClearMessage'. Global subroutine assumed.
**Info***:Undefined procedure 'bQueuedMsgAvailable'. Global subroutine assumed.
**Error**:Undefined variable 'messageParm'. 'short' assumed.
**Info***:Undefined procedure 'ClearMessage'. Global subroutine assumed.


its like the BTooth isn't there. I'm using ROBOTC for Mindstorms 2.16.1, in all the examples I've found on google, the variables message and messageParm are not defined, and neither are the procedures.

Karl.


Sun Sep 26, 2010 6:25 am
Profile
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: My Bluetooth Code Won't compile
It's a bug in 2.16.1, they removed it when they removed the RCX support from ROBOTC. The devs are aware of the issue.

- Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Sun Sep 26, 2010 6:33 am
Profile WWW
Rookie

Joined: Mon Aug 20, 2007 4:01 am
Posts: 28
Post Re: My Bluetooth Code Won't compile
OK. Thanks for the quick response, found the same problem in 2.25.1 too. Now using 2.0.2.

Karl.


Sun Sep 26, 2010 6:57 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.