You could try my Bluetooth code btferret that includes an OBEX server.
https://github.com/petzval/btferret
https://github.com/petzval/btferret
Code:
DOWNLOAD btferret.c btlib.c btlib.h devices.txtCOMPILE gcc btferret.c btlib.c -o btferret RUN sudo ./btferret OBEX SERVER from btferret command line Enter s to start a server Enter 5 for OBEX server Enter 0 for Any device Enter 0 for security option (you might have to experiment with this) Pi is now listening as an OBEX serverStatistics: Posted by petzval — Fri Mar 21, 2025 12:41 pm