Re: Bluetooth data transferring speed
Re: Bluetooth data transferring speed
- Subject: Re: Bluetooth data transferring speed
- From: Ralf Menssen <email@hidden>
- Date: Mon, 02 Oct 2006 10:10:04 +0200
Hi All,
I would like to know how to retrive the "bluetooth data transferring
speed" in Cocoa. For example, there are two bluetooth enabled cell phone
is downloading the data from Mac, I would like to display the dynamic
expected downloading time on the two cell phones. First of all, i think
i need to get the left file size, and I also need to know the current
downloading speed.
In Cocoa how to get this value?
Thanks in advance.
When transfering files via Obex File Transfer you should provide two
callback functions in your delegate looking like this:
- (void)
fileTransferServicesSendFileProgress:(OBEXFileTransferServices*)inServices
transferProgress:(NSDictionary*)inProgressDescription;
- (void)
fileTransferServicesCopyRemoteFileProgress:(OBEXFileTransferServices*)inServices
transferProgress:(NSDictionary*)inProgressDescription
You can access informations from inProgressDescription like the current
transfer rate using these keys:
kFTSProgressBytesTotalKey
kFTSProgressBytesTransferredKey
kFTSProgressEstimatedTimeKey
kFTSProgressPercentageKey
kFTSProgressTimeElapsedKey
kFTSProgressTransferRateKey
When using Object Push you have to measure time and calculate it yourself.
=======================================
nova media Mobile Data Solutions GmbH
Ralf Menssen
_______________________________________________
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