From: Christian W. Z. <Christian@Zuckschwerdt.org> - 2007-05-19 23:05:51
|
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(). |