• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Read/Write Blob
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Read/Write Blob


  • Subject: Re: Read/Write Blob
  • From: karel <email@hidden>
  • Date: Tue, 31 Jul 2012 15:17:06 +0900

Hi Joakim,
Thanks for the quick reply.
I can understand the automation of a writeblob since the total length of the data is held within the NSData structure. But how can readValueForCharacteristic determine the length of the read, and how does it handle reading from an attribute who's length may not be fixed?
Thanks.
P.S. If there is documentation detailing the above functionality, please post a link; as honestly, until the iPhone I am now working on, I have not used an Apple device since the Apple II s we had at high school.

(2012/07/31 14:20), Joakim Linde wrote:
Hi Karel,

You read/write the whole blob with CoreBluetooth. The CoreBluetooth framework will then break it down in smaller chunks for you automatically.

Thanks,
Joakim

On Jul 30, 2012, at 9:50 PM, karel <email@hidden> wrote:

I have been working from example code for a Bluetooth LE application on the iPhone4S and have reused the readValueForCharacteristic and writeValue:forCharacteristic for accessing attributes which will fit into one packet (i.e. length less than 20bytes or so).

Are there any read/write functions available for accessing a subrange of large attributes, that is, how does one do Read/Write Blob with iOS (on the iPhone4S)?

Thanks.

Karel

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >About BLE connection parameter (From: "email@hidden" <email@hidden>)
 >Re: About BLE connection parameter (From: karel <email@hidden>)
 >Read/Write Blob (From: karel <email@hidden>)
 >Re: Read/Write Blob (From: Joakim Linde <email@hidden>)

  • Prev by Date: Re: Read/Write Blob
  • Next by Date: Pairing iPhone Bluetooth and android
  • Previous by thread: Re: Read/Write Blob
  • Next by thread: scan BLE device in background
  • Index(es):
    • Date
    • Thread