HOW ADVERTISE A SERVICE?!?

Login to reply to this topic.
Sat, 2006-04-01 10:29
Joined: 2005-12-06
Forum posts: 14
Hi all, I really need help! I'm developing a BT-application that offer a service with a specific UUID.

The problem is that I don't know how to advertise this service.
I have changed the function ServiceClass in this way:

Code:
const TUUID& CAPAServiceAdvertiser::ServiceClass()
    {
//return UUID of APA application
static const TUint32 UUIDaHH = 0x0FA1A7AC;
static const TUint32 UUIDaHL = 0x16A211D7;
static const TUint32 UUIDaLH = 0x854400B0;
static const TUint32 UUIDaLL = 0xD03D76EC;

TUUID serviceUUID(UUIDaHH,UUIDaHL,UUIDaLH,UUIDaLL);

return serviceUUID;

    }

But when I browse the device with the PC I don't see this service!

Can somebody hemp me?

Any hints will be greatly appreciated...

Mon, 2006-04-03 04:10
Joined: 2005-03-06
Forum posts: 183
Re: HOW ADVERTISE A SERVICE?!?
have a look at the BT point-to-point sample application

Regards,
isseyp
Mon, 2006-04-03 09:17
Joined: 2005-12-06
Forum posts: 14
Re: HOW ADVERTISE A SERVICE?!?
I have looked at this example, but here I have found only the UUID of the serial port simulation... nothing more...

Huh
Wed, 2006-04-05 10:35
Joined: 2005-03-06
Forum posts: 183
Re: HOW ADVERTISE A SERVICE?!?
look at BTOBEX then, its advertises a service...
Wed, 2006-04-05 23:44
Joined: 2005-12-06
Forum posts: 14
Re: HOW ADVERTISE A SERVICE?!?
Quote from: isseyp
look at BTOBEX then, its advertises a service...

I'm not sure... I think that obex is simple another pre-defined service and so it's not the same as to create a new service with a specific UUID...
Thu, 2006-04-06 05:06
Joined: 2005-03-06
Forum posts: 183
Re: HOW ADVERTISE A SERVICE?!?
you can change the UUID for the service.
I have done something similar for a service I created.
Try it out and play around with the samples.
It does work.

Regards,
Isseyp
Fri, 2006-04-07 10:18
Joined: 2005-12-06
Forum posts: 14
Re: HOW ADVERTISE A SERVICE?!?
Code:
you can change the UUID for the service.

Ok, but how I make this? I have changed the function ServiceClass() and I thinked that here was the place where to change the UUID...

but it doesn't work, and i have spent a lot of time  Embarassed
  • Login to reply to this topic.