Re: [Nxtcommand-developers] CLDC
Status: Beta
Brought to you by:
bbagnall
From: Peter J. <ptg...@ch...> - 2006-11-22 22:02:53
|
I am talking nonsense, NXTCommand.open() will (probably) be introduced in v0.6. So forget about the NXTCommand.open() command. In v0.5 the following change was introduced. In v0.4 the NXTCOMM environment variable was used to set the serial port to use for bluetooth. In v0.5 this no longer works. In v0.5 we introduced a file "icommand.properties". In this file the property nxtcomm should be set to the serial port for bluetooth. In the distribution is included a file IMPORTANT.txt where this is explained. See also the instructions in README.txt, and have a look at the icommand.properties file in the distribution. Peter Joosten. > > Please add the 2 lines NXTCommand.open() and NXTCommand.close() > in your code program. NXTCommand.close() is part of icommand for as > long as i know icommand, NXTCommand.open() was introduced in the last > release 0.5 > > > package nxtbttest; > > > > import icommand.nxtcomm.*; > > import icommand.platform.nxt.*; > > > > public class Main > > { > > public static void main(String[] args) > > { > NXTCommand.open(); // at the start of the program execution. > > > UltrasonicSensor us = new UltrasonicSensor(Sensor.S1); > > NXTCommand.close(); // at the end of the program execution > > } > > } > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nxtcommand-developers mailing list > Nxt...@li... > https://lists.sourceforge.net/lists/listinfo/nxtcommand-developers |