Re: [问题] 请问蓝芽资料传送的APIs

楼主: stevenlin08 (stevens)   2014-12-04 16:01:07
※ 引述《biostat02 (王子)》之铭言:
: 目前在做iOS蓝芽的资料传输
: 可是一直搞不清楚这两者的差别
: - writeValue:forCharacteristic:type:
: - updateValue:forCharacteristic:onSubscribedCentrals:
: 我个人的解读是两者的传输方向是相反的
: 想跟各位确定一下,谢谢
hi,
是的,
I hope you have already figured out the answer to this question.
- updateValue:forCharacteristic:onSubscribedCentrals:
this is Peripheral Role Tasks.
When you call this method to send updated characteristic values to s
ubscribed centrals, you can specify which centrals you want
to update in the last parameter.
从Peripheral 送到Central 。
writeValue:forCharacteristic:type: method
this is for Central Role Tasks.
whento write the value of a characteristic, you spec
ify what type of write you want to perform.
then callback function
peripheral:didWriteValueForCharacteristic:error:
you can reference Core Bluetooth Programming Guide from apple
作者: uranusjr (←這人是超級笨蛋)   2014-12-04 17:13:00
为什么几乎全篇英文却要在无关紧要的地方夹中文进去...

Links booklink

Contact Us: admin [ a t ] ucptt.com