From: Dieter Verslype <Dieter.Verslype@intec.ugent.be>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] Registering service / Getting data
Date: Wed, 30 Aug 2006 11:31:17 +0200 [thread overview]
Message-ID: <44F55AE5.40401@intec.ugent.be> (raw)
In-Reply-To: <44F54A39.6060704@intec.ugent.be>
Hello list,
found it myself :) I was confusing the service ID with the Service Class
UUID list.
I just added this in the register_service() method:
//SERVICE CLASS UUID
uint16_t class_uuid_int = 0x1101;
sdp_uuid16_create( &class_uuid, class_uuid_int );
class_list = sdp_list_append( class_list, &class_uuid);
sdp_set_service_classes( record, class_list );
This results in:
root@laptop:/home/dvrslype# sdptool browse local
Browsing FF:FF:FF:00:00:00 ...
Service Name: Health Monitor Service
Service Description: Captures Bluetooth packages and stores in SQL_DB
Service Provider: IBCN-Niko
Service RecHandle: 0x10000
Service Class ID List:
"Serial Port" (0x1101)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 11
Service Name: KBtSerialChat
Service Description: KDE Bluetooth Serial Chat Service
Service RecHandle: 0x10001
Service Class ID List:
"Serial Port" (0x1101)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 5
gr,
Dieter
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2006-08-30 9:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-30 8:20 [Bluez-devel] Registering service / Getting data Dieter Verslype
2006-08-30 9:31 ` Dieter Verslype [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-08-29 16:01 Dieter Verslype
2006-08-29 20:56 ` Marcel Holtmann
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=44F55AE5.40401@intec.ugent.be \
--to=dieter.verslype@intec.ugent.be \
--cc=bluez-devel@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