Hi am coding a bluetooth application to do obex push transfers to mobile phones.when using obexftp_connect(cli, addr, port) I am receiving an error number -94 which translates into ESOCKTNOSUPPORT. I had a look to the obexftp source code for client.c so it seems that in this function there is a switch which uses cli->transport to see if the client was succesfuly set with the bluetooth transport.
This is why i printed out in my application the following line after successfuly executing cli obexftp_open(OBEX_TRANS_BLUETOOTH, NULL, NUll, NULL);
printf("%d, %d\n", cli->transport, OBEX_TRANS_BLUETOOTH);
The result was
To me it seems as if the source code for the obexftp library should not return such error but it is doing so...
Note: I am retrieving succesfuly the channel of the mobile phone with the sdp service library. So this error is confusing me.
This error is returned if either ObexFTP or OpenOBEX is compiled without bluetooth support. You need to check the ./configure output of ObexFTP and OpenOBEX for "bluetooth... yes".
If you use the latest ObexFTP (0.22-rc, wiki->downloads) you get sdp support with ObexFTP.
For a push example see: http://dev.zuckschwerdt.org/openobex/wiki/ObexFtpExamplePushC
How can i set the configuration to yes? I don't really know where to look for such configuration.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.