We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › Bluetooth connect doesn't fire off clientConnectEv
Page Index Toggle Pages: 1
Bluetooth connect doesn't fire off clientConnectEv (Read 946 times)
Bluetooth connect doesn't fire off clientConnectEv
May 8th, 2009, 4:07am
 
I'm using the desktopbluetooth library and it, generally, works ok.  However, when my mobile processing app connects to the service on the PC it doesn't always trigger the clientConnectEvent function, it would seem.  Interestingly, my bluetooth system tray icon ALWAYS shows that a device has successfully connected, so it's working fine mobile processing end...

As an aside, is there any way of finding out when a client is no longer connected?  

cheers

DrWig
Re: Bluetooth connect doesn't fire off clientConnectEv
Reply #1 - May 8th, 2009, 4:32am
 
Hey DrWig, how do you get it to connect at all
Like i mentioned in my last post. How did you make it work I can start up the sketch but all it says is, "error is your bluetooth on" and i know it is cause i connect my mobile phone with my PC.
Maybe you wanna ask for your question in the speciel Bluetooth thread...

http://processing.org/discourse/yabb2/num_1195091003_45.html#45

Re: Bluetooth connect doesn't fire off clientConnectEv
Reply #2 - May 8th, 2009, 7:30am
 
If you're getting that error, you might need to just delete the avenena (or whatever it's called) file in your bluetooth lib folder.  As for posting ALL bluetooth questions in one massive thread....not a good idea, as no-one has any idea what exactly the question is about until reading through all 4 pages...bit of a pain, me thinks!!

cheers

DrWig
Re: Bluetooth connect doesn't fire off clientConnectEv
Reply #3 - May 8th, 2009, 7:42am
 
Great its working... thanks!

maybe you are right about the posting... i just thought you get a quicker answer cause extrapixel who started the post will get a notification and maybe helps....

Thx again and good luck with your problem
Re: Bluetooth connect doesn't fire off clientConnectEv
Reply #4 - May 11th, 2009, 4:45am
 
Sometimes I get this error in the console:

Quote:
Disabling clientConnectEvent() for ?? because of an error.
java.lang.reflect.InvocationTargetException
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at bluetoothDesktop.Bluetooth.clientConnectEvent(Bluetooth.java:434)
     at bluetoothDesktop.Service.run(Service.java:105)
     at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: WigBTTest2_PC$WigClient
     at WigBTTest2_PC.clientConnectEvent(WigBTTest2_PC.java:59)
     ... 7 more
Caused by: java.lang.ClassNotFoundException: WigBTTest2_PC$WigClient
     at java.net.URLClassLoader$1.run(Unknown Source)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClassInternal(Unknown Source)
     ... 8 more
Re: Bluetooth connect doesn't fire off clientConnectEv
Reply #5 - May 18th, 2009, 1:59am
 
no one else have any problems with this library, then....oh well!
Page Index Toggle Pages: 1