Author: ks156
Date: 2009-09-16 17:13:56 +0200 (Wed, 16 Sep 2009)
New Revision: 5418
Modified:
software_suite_v3/software/plugin/plugin-maxlight/trunk/executables/plugin-maxlight.py
Log:
* Added a test to connect the API in the right server port.
Modified:
software_suite_v3/software/plugin/plugin-maxlight/trunk/executables/plugin-maxlight.py
===================================================================
---
software_suite_v3/software/plugin/plugin-maxlight/trunk/executables/plugin-maxlight.py
2009-09-16 14:59:21 UTC (rev 5417)
+++
software_suite_v3/software/plugin/plugin-maxlight/trunk/executables/plugin-maxlight.py
2009-09-16 15:13:56 UTC (rev 5418)
@@ -49,6 +49,12 @@
'''
self.tux.server.autoConnect(CLIENT_LEVEL_RESTRICTED, 'TuxMaxLight',
'plugin-maxlight')
+ if os.name != 'nt':
+ sleep(0.5)
+ if not self.tux.server.getConnected():
+ self.tux = TuxAPI("127.0.0.1", 54321)
+ self.tux.server.autoConnect(CLIENT_LEVEL_RESTRICTED,
'TuxMaxLight', 'plugin-maxlight')
+
self.tux.server.waitConnected(5.0)
self.tux.dongle.waitConnected(5.0)
self.tux.radio.waitConnected(5.0)
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn