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