Re: Obex Push

Iain Hibbert
2009-02-11T11:24:15Z

On Wed, 11 Feb 2009, GianPiero Puccioni wrote:

> Li, Zhigang wrote:
>
> .....
>
> >> I have seen it but I don't know python, in fact I forgot to say the program should be
> >> a small command line C program, something like "opush 00:11:9F:4B:A1:D9 text.txt"
> >> as I have to use it in bash script.
> > ./send-files [target address] /home/text.txt
> >
> Unfortunately I cannot use it as I cannot compile obexd (my linux is a little outdated and
> my libglib is too old). That's why I was trying to write my own C prog as I used Bluez
> before for another project.

you could use 'obexftp' or 'obexapp' either directly or as examples to do
this, both use 'openobex' library. See

http://openobex.triq.net/
http://www.geocities.com/m_evmenkin/

(obexapp was written for FreeBSD and provides server capability also but
perhaps it would be possible to adapt it to bluez..)

iain