Author Topic: OppServer : no file is send  (Read 18167 times)

turck

  • Guest
OppServer : no file is send
« on: January 08, 2019, 05:59:02 PM »
Hello
I am trying to build an application that sends and receives files via Bluetooth using the examples OppClient and OppServer.
With OppClient no problem, the file is sent
with OppServer
server listening -> OK
The client sends the file -> OK
On the erver side:
Client xxx requests for connection : Accept  -> OK
Client xxx send file yyy.jpg : Accept -> OK
Client xxx completed sent file : Accept -> OK
Msg :
Send file error 0x00031029
Client xxx closed OBEX session with reason : 0x00031028
Data processor for client xxx is destroing
Client xxx disconnected. Reason : 0x00030008
No file on the server !
Msg on client : file is sent : OK
can you help me
thank you

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: OppServer : no file is send
« Reply #1 on: January 08, 2019, 08:10:25 PM »
Hello,

The errors are correct for such situation. 0x00031029 means WCL_E_OBEX_OPERATION_TERMINATED_BY_USER. It may appear when server closes the connection right after send operation completed. This also indicated by the 0x00031028 error code (WCL_E_OBEX_OPERATION_TERMINATED_BY_DISCONNECT).

About the file. Once you receive OppClientPutCompleted even and accepted the file you have to save received data on your local disk if needed. The OppServer demo does not save anything that was received.

If yo utell me which edition you use (C++, .NET or VCL) I'll prepare modified demo that saves the file.

turck

  • Guest
Re: OppServer : no file is send
« Reply #2 on: January 08, 2019, 10:33:03 PM »
Hello
it's VCL

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: OppServer : no file is send
« Reply #3 on: January 08, 2019, 10:40:42 PM »
Here it is. We will receive updated version later today with modified demos and some bugs fixed.

turck

  • Guest
Re: OppServer : no file is send
« Reply #4 on: January 08, 2019, 11:48:44 PM »
it's perfect
thank you so much

 

Sitemap 1 2 3 4 5 6 7