• 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
Still confuse about rfcomm send and receive.....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Still confuse about rfcomm send and receive.....


  • Subject: Still confuse about rfcomm send and receive.....
  • From: Nathanael P <email@hidden>
  • Date: Mon, 24 May 2004 07:46:58 -0700 (PDT)

Hi everyone..
I am a student of a college in Indonesia, and I am
currently doing a final task. I am a newbie in mac
programming. For my final task, I want to build a
bluetooth communication between my se t610 and my mac.
I have built a rfcomm sync connection, but I do not
how to receive the response from what I have sent. I
have asked to bluetooth developer mailing list, they
told me to set the callback from setdelegate: and use
this function:

(void)rfcommChannelData:(IOBluetoothRFCOMMChannel*)rfcommChannel
data:(void *)dataPointer length:(size_t)dataLength;

But I do not know how to use it both. Currently, this
is what i have done:

IOBluetoothDeviceSelectorController *deviceSelector;
NSArray *deviceArray;
deviceSelector = [IOBluetoothDeviceSelectorController
deviceSelector];
[deviceSelector runModal];
deviceArray = [deviceSelector getResults];
selectedDevice = [deviceArray objectAtIndex:0];
[selectedDevice openRFCOMMChannelSync:&mRFCOMMChannel
withChannelID:10 delegate:self];
[mRFCOMMChannel retain];
char *s1 = "at+cmgf=1\r";
[mRFCOMMChannel writeSync:s1 length:strlen(s1)];
char *s2 = "at+cmgl=\"all\"\r";
[mRFCOMMChannel writeSync:s2 length:strlen(s2)];

These code is learned from the example that comes
along with project builder. I'd be so grateful if
anyone could explain me.

Thanks a lot,
Nathanael




__________________________________
Do you Yahoo!?
Yahoo! Domains  Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer
_______________________________________________
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: Still confuse about rfcomm send and receive.....
      • From: Yann Bizeul <email@hidden>
    • Re: Still confuse about rfcomm send and receive.....
      • From: Marco Pontil <email@hidden>
  • Prev by Date: Re: Bluetooth and Cocoa
  • Next by Date: Re: Still confuse about rfcomm send and receive.....
  • Previous by thread: Re: Bluetooth and Cocoa
  • Next by thread: Re: Still confuse about rfcomm send and receive.....
  • Index(es):
    • Date
    • Thread