theMope wrote:
The goal is to control 2NXTs via bluetooth, using my i900Omnia as master.
So far i made a little GUI for my omnia, using Canvas.
On my NXT i actually run the sample code BTReceive for the nxt.
OK so your phone in midp2.
I've done midp2 stuff before but not with leJOS (so I don't know the exact setup).
Anyway it seems you know midp ok, so what you need is in SVN I think.
http://sourceforge.net/projects/lejos/develop
As far as I can guess, you'll just need to get the
- Code: Select all
trunk/j2mecomms/
package into your midp project src.
There are samples to use in
- Code: Select all
/trunk/j2mesamples/
which you can browse here
http://lejos.svn.sourceforge.net/viewvc/lejos/trunk/j2mesamples
You can see how to send/recieve an int with
http://lejos.svn.sourceforge.net/viewvc/lejos/trunk/j2mesamples/src/org/lejos/j2mesamples/Form1.java?view=markup
Feel free to post your code and/or a tutorial when you get it working.
Again, I am assuming it will work and have not used midp with leJOS myself.