Tell me more ×
Facebook - Stack Overflow is a question and answer site for facebook developers. It's 100% free, no registration required.
Facebook and Stack Exchange are now working together to support the Facebook developer community. Facebook engineers participate here along with the best Facebook developers in the world. If you have a technical question about Facebook, this is the best place to ask.

I have a bluetooth server running on my Ubuntu desktop written using PyBlueZ. That server is advertising a certain service via UUID. I have tested this server thoroughly using a client I also wrote with PyBlueZ.

Now I am attempting to implement a Java client using BlueCove. My BlueCove client can successfully locate my desktop (I checked by printing out the "user friendly name"). However, when I do a service search on my desktop for the advertised UUID, no services are found. I do not get an error or anything, I simply do not get any callbacks for services discovered.

Is there anything unusual that might be going on when connecting these two systems? The UUIDs are identical, although I have noticed that the PyBlueZ format asks for dashes "-" in the UUID, whereas BlueCove expects one continuous string of hex digits. I assume this is a purely presentational issue.

Finally, in an unrelated matter, are there any BlueCove communities out there? I have been coming up with an extreme shortage of resources to find answers to my BlueCove questions...

share|improve this question

1 Answer

up vote 0 down vote accepted

The mistake I made was that I did not realize searchServices() was an asynchronous method which required as much time as device discovery to execute. I was not sleep()'ing to give it a chance to find services.

Now that I'm giving searchServices() time to complete, it is at least invoking the serviceDiscovered callback.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.
{"cc_re__cc_re__cc_by_sa_3_0": ["f=\"http://area51.stackexchange.com\" title=\"proposing new sites in the Stack Exchange network\">Area 51</a></li>\r\n                        <li><a href=\"http://careers.stackoverflow.com\">Stack Overflow Careers</a></li>\r\n                    \r\n                </ol>\r\n            </td>\r\n    </tr>\r\n</table>\r\n                </div>\r\n            </div>\r\n\r\n            <div id=\"copyright\">\r\n                site design / logo &copy; 2013 stack exchange inc; \r\n                user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc-wiki</a> \r\n                with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"footer-flair\">\r\n                <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" class=\"cc-wiki-link\"></a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2013.5.22.697\r\n            </div>\r\n            \r\n        </div>\r\n    </div>\r\n    <noscript>\r\n        <div id=\"noscript-warning\"", "\r\n</table>\r\n                </div>\r\n            </div>\r\n\r\n            <div id=\"copyright\">\r\n                site design / logo &copy; 2013 stack exchange inc; \r\n                user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc-wiki</a> \r\n                with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"footer-flair\">\r\n                <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" class=\"cc-wiki-link\"></a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2013.5.22.697\r\n            </div>\r\n            \r\n        </div>\r\n    </div>\r\n    <noscript>\r\n        <div id=\"noscript-warning\">Facebook - Stack Overflow works best with JavaScript enabled<img src=\"http://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif\" alt=\"\" class=\"dno\"></div>\r\n    </noscript>\r\n    <script type=\"text/javascript\">var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-5620270-34']);\r\n        _gaq.push(['_setCust"], "copyright__copyright__copyright": ["ze searchServices() was an asynchronous method which required as much time as device discovery to execute. I was not sleep()'ing to give it a chance to find services.\n\nNow that I'm giving searchServices() time to complete, it is at least invoking the serviceDiscovered callback.\n\nshare|improve this answer\n\nYour Answer\n\n\u00a0\ndiscard\n\nBy posting your answer, you agree to the privacy policy and terms of service.\n\nNot the answer you're looking for? Browse other questions tagged or ask your own question."]}