[maemo-developers] [maemo-developers] Registering bluetooth service

From: Xavier Garreau xavier at xgarreau.org
Date: Mon Feb 13 11:51:18 EET 2006
Ari Paavilainen a écrit :
> Hi,
> 
> Has anyone managed to register a bluetooth service to local sdp server.
> I have a piece of code that tries to do that but it fails in call to
> sdp_record_register(). Error is 29 = ESPIPE = Illegal seek.
> 

>     session = sdp_connect( BDADDR_ANY, BDADDR_LOCAL,
> SDP_RETRY_IF_BUSY );
>     err = sdp_record_register(session, record, 0);    // FAILS

Maybe you should check session value before passing it to 
sdp_record_register ?

Check that sdpd is running

Check that /var/run/sdp exists.

Regards
-- 
Xavier Garreau <xavier at xgarreau.org>
http://www.xgarreau.org/

More information about the maemo-developers mailing list