hi, thank you for your reply.
the UUID of class of service is right, as I got it by browsing all the service in the target device.
Type: Posts; User: andy205214; Keyword(s):
hi, thank you for your reply.
the UUID of class of service is right, as I got it by browsing all the service in the target device.
自己定一下,怎么没人回哦!
hi all,
my case is i want find a bluetooth service on PC, and i have the UUID of service, but when i run the code blow,
iAgent = CSdpAgent::NewL( *this, iDevData->iDeviceAddr );
//...
各位好,
我想通过蓝牙通信建立手机与PC的通讯通道,PC作为master端,手机作为slave端,在PC上建立并广播一个由GUID标识的蓝牙服务,然后手机端通过这个GUID去发现服务的端口号并与之建立联系。
我的代码如下:
iAgent = CSdpAgent::NewL( *this, iDevData->iDeviceAddr );
// set...
你联调一下看看是什么原因~
看看oracle3给的资料
参考s60自带帮助,
» Symbian OS » Developer Knowledgebase » FAQ-1151
不知道有没有公开的API,应该是要用到蓝牙的MTM的
看看MMsvSessionObserver这个接口。
自己装个活动对象再试试
别人是想在堆上分配内存,*就是数组的数组了?
Hi, I don't undstand what your mean, but i wondering why you derive from CServer2, do you know what means when you inherit CServer2?
yeah, there are many different between emulator and real device, there are many reasons that app can run on emulator but not the real devices, such as the resource not exist on real device, so I...
sorry,
写错了,应该是这样
HBufC* hbuf = (*aPointArray)[i]->iItemTitle;
hi, as implement a Server, why you instance a CTimeServer?
use the CPeriodic class
If you want to allocate it on heap, your'd better derive it from CBase or CBase derived class, you can not multi-inherit CBase or CBase-derived class
as the error code indicates that Unable to find the specified object
you can debug it in the HandleCommandL() function and see where it craches
HBufC* hbuf = aPointArray[i]->iItemTitle;
变成
HBufC* hbuf = (*aPointArray[i])->iItemTitle;
试试
你这是写红外代码吧?
如果是试试将服务程序和客户程序放在两台机器上跑跑看
如果你熟悉windows 里的COM组件的话,那么你会觉得这个和那个其实差不多
你穿进去的HBufC参数的内容是不可修改的,往里面写数据当然出错啦。
建议看看这个,有关描述符的,写的很不错,之前也有人发过很多次了
http://killmy.info/browse.php?b=5&u=Oi8vZGVzY3JpcHRvcnMuYmxvZ3Nwb3QuY29tLw%3D%3D
楼主说说是什么问题啊
ziteng兄给的链接好像打不开,
直接在wiki里搜How to generate Import Library就可以找到
EKA1和EKA2用于判断第三版之前或之后
恩,肯定是可以实现的,搜索过程中很有可能会搜索到重复的设备名称,需要自己去筛选掉!