2017-12-11 23:44:09

by John Klug

[permalink] [raw]
Subject: RFCOMM server and current Bluez

Would anyone know of any public examples of using RFCOMM with current
methods, or does RFCOMM require compatibility mode and SPD?

There does not seem to be any RFCOMM server examples included with Bluez.

Or would there be any detailed documentation on how an RFCOMM server
would be written?

Thanks.


2017-12-12 15:52:51

by Marcel Holtmann

[permalink] [raw]
Subject: Re: RFCOMM server and current Bluez

Hi John,

> Would anyone know of any public examples of using RFCOMM with current
> methods, or does RFCOMM require compatibility mode and SPD?
>
> There does not seem to be any RFCOMM server examples included with Bluez.
>
> Or would there be any detailed documentation on how an RFCOMM server
> would be written?

look at doc/profile-api.txt and you will find Python based test example for it. Also profiles/iap/main.c is a super simple (also incomplete) example for a custom service like Appleā€™s iAP.

Regards

Marcel