From: Hendrik S. <po...@he...> - 2007-05-20 06:26:38
|
Am Sonntag 20 Mai 2007 01:05 schrieb Christian W. Zuckschwerdt: > 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); I don't think that SDP-specific stuff should be part of the obexftp API: - another protocol - another layer HS |