Hi,

for a quick test use some language binding of ObexFTP (i.e. perl,
python, ruby or tcl). The examples in the wiki are straight forward.

If you really want C you can modify the example C client:

 - remove the obexftp_list block.
 - replace the obexftp_get with (e.g.) a obexftp_put_file(client,
filename, name_on_mobile).
(see http://dev.zuckschwerdt.org/obexftp/browser/trunk/obexftp/client.h)

You can leave the channel discovery to ObexFTP if you like. Just use
channel = -1

If you need simple OPUSH instead of FTP use obexftp_connect_push instead
of obexftp_connect (the channel will be selected accordingly).

Have fun, perhaps post your solution for review and inclusion in the wiki!


regards,
Christian

Daniel Rindt schrieb:
> i search around the web since some days for a little example code to pushing 
> files to mobile devices. I have shown the example like this 
> http://dev.zuckschwerdt.org/openobex/wiki/ObexFtpExampleClientC
>
> But i need an example for putting only one file.
>
> and how i can find out the obex channel from the device? (sdp.h)
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Openobex-users mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/openobex-users

Reply via email to