• 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
IOBluetooth framework not calling my callback, why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IOBluetooth framework not calling my callback, why?


  • Subject: IOBluetooth framework not calling my callback, why?
  • From: Eric Flatt <email@hidden>
  • Date: Wed, 7 Jul 2004 21:15:23 -0400

Hey all.

when I call IOBluetoothDeviceRemoteNameRequest synchronously, it
connects to the remote device, fetches the name, no problem....
however, when I provide a callback (as the API provides should result
in an asynchronous response coming back at my callback), I just end up
'falling through' and my callback never gets called. Any suggestions?

here are the relevant pieces, thanks in advance for any guidance:


/* The inDeviceRef is properly set up, and the call gets made: */

IOBluetoothDeviceRef
inDeviceRef=IOBluetoothDeviceCreateWithAddress(&device_address);

status = IOBluetoothDeviceRemoteNameRequest(inDeviceRef,
RemoteNameRequestCallback,
self,
device_name);

/* Proto and setup of the callback: */
void RemoteNameRequestCallback(void* userRefCon,IOBluetoothDeviceRef
deviceRef,IOReturn status);

void RemoteNameRequestCallback(void* userRefCon,IOBluetoothDeviceRef
deviceRef,IOReturn status) {
printf("Hello");
}
_______________________________________________
bluetooth-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/bluetooth-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: IOBluetooth framework not calling my callback, why?
      • From: Bubba Giles <email@hidden>
  • Prev by Date: Re: device discovery
  • Next by Date: Re: IOBluetooth framework not calling my callback, why?
  • Previous by thread: Re: Problematic syncing with my Nokia 6600
  • Next by thread: Re: IOBluetooth framework not calling my callback, why?
  • Index(es):
    • Date
    • Thread