Hi,
ok. Have a look at the ObexFTP API (client example)
http://dev.zuckschwerdt.org/openobex/wiki/ObexFtpExampleClientC
I will make your project simpler and easier. Rough example:
char **device_list = obexftp_discover_bt();
char *device = <select one device>
int channel = obexftp_scan_bt(device, OBEX_OBJPUSH_SVCLASS_ID);
obexftp_client_t *cli = NULL;
cli = obexftp_open(OBEX_TRANS_BLUETOOTH, NULL, NULL, NULL);
ret = obexftp_connect_push(cli, device, channel);
ret = obexftp_put_file(cli, path, remotename);
ret = obexftp_disconnect(cli);
obexftp_close(cli);
regards,
Christian
Juan Jesus Salas Rivera schrieb:
> The function obexftp_scan_bt(char *addr, int svclass) seems that it is
> what I looking for .
>
> in the project there is a function that gives all available devices
> (name and address) but not gives the channel for PUSH. This function
> bassically its similar to obexftp_discover_bt().
-------------------------------------------------------------------------
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