public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: William Pettersson <enigma@strudel-hound.com>
To: bluez-users@lists.sourceforge.net
Subject: [Bluez-users] RFComm library
Date: Fri, 20 May 2005 15:16:58 +1000	[thread overview]
Message-ID: <1116566219.8454.4.camel@delta> (raw)

Ok, so I needed some simple way to use Bluetooth in my application.
I've basically just done some copying and pasting from the source of the
tools hcitool and rfcomm, so I can't exactly claim any of this work as
my own.  It's all under Marcel's GPL still, and will probably stay that
way.  This is just so far a simple way of doing a bluetooth inquiry/scan
and getting results back.  I'll take pointers on how to do things
better/more effectively, but I can't guarantee much.
What's included is the source for the library, and a sample app.
The sample app does a bluetooth scan, finds my phone (identified by the
name 'Will', and then connects to the serial port offered.  The AT+CBC
that I have in there returns the battery status of my phone, it's just
my test case.  
Using the library is explained in the rfcomm-library.h file, and
hopefully it makes sense.

This is just to help others who are trying to do what I needed to do,
hopefully someone will benefit from this.

Will

http://www.strudel-hound.com/librfcomm.tar.bz2





-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

             reply	other threads:[~2005-05-20  5:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-20  5:16 William Pettersson [this message]
2005-05-20  9:32 ` [Bluez-users] RFComm library Marcel Holtmann
2005-05-21  8:34   ` [Bluez-users] Link quality Pieter De Mil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1116566219.8454.4.camel@delta \
    --to=enigma@strudel-hound.com \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox