07-09-2012 04:15 AM
Hi,
Please suggest me the native Bluetooth API which can be user to connect , send and receive data from other device.
Solved! Go to Solution.
07-09-2012 04:56 AM
07-09-2012 06:47 AM
Hi,
It would be great if you please describe it a more..
07-10-2012 09:20 AM
Hello,
Afaik, there isn't one exposed in the API at this time. See this thread
http://supportforums.blackberry.com/t5/Native-Deve
Cheers
Selom
07-10-2012 02:26 PM
Hello,
We don't have a bluetooth API in the current beta releases, but will plan on supporting an API for BB10.
08-01-2012 10:28 AM
APIs have been added in Beta 2 of the NDK however we are still working to get documentation ready for them and they are subject to change a bit moving forward. If you would like to see what is available then you can find the header files here:
<yourNdkInstallDirectory>\target_10_0_6_378\qnx6\u
08-07-2012 04:55 AM - edited 08-07-2012 05:09 AM
hello
I try to use btspp.h
I use bt_spp_init int ();
to Initializes the library
when I build, I have the error :
undefined reference to `bt_spp_init '
what must be done to cane use this library ???
08-08-2012 07:49 AM
Could you post your code snippet?
08-08-2012 08:09 AM
#include "app.hpp"
#include <bb/cascades/Application>
#include <bb/cascades/QmlDocument>
#include <bb/cascades/AbstractPane>
//#include <btapi/btgatt.h>
//#include <btapi/btle.h>
#include <btapi\btspp.h>
#include "myBt.h"
using namespace bb::cascades;
App::App()
{
int te = bt_spp_init();
qWarning() << te ;
//bt_spp_init();
QmlDocument *qml = QmlDocument::create("main.qml");
//-- setContextProperty expose C++ object in QML as an variable
//-- uncomment next line to introduce 'this' object to QML name space as an 'app' variable
//qml->setContextProperty("app", this);
AbstractPane *root = qml->createRootNode<AbstractPane>();
Application::setScene(root);
}
08-08-2012 08:21 AM
I think that the problem is that the library does not compile libbtapi.so
because in the makefile I Have
LIBS = $(SUBLIBS) -L$(QNX_TARGET)/armle-v7/lib -L$(QNX_TARGET)/armle-v7/usr/lib -L$(QNX_TARGET)/armle-v7/usr/lib/qt4/lib -LC:/bbndk2/target_10_0_6_384/qnx6/usr/lib/qt4/lib -lm -lbps -lbb -lbbcascades -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lQtXmlPatterns -lQtXml -lQtGui -lQtNetwork -lQtCore
I do not know how fair to compile the library libbtapi.so