Good evening at everyone,
I wrote a simple application with Q2686 FW 6.63 OS. 4.22 for download file via FTP after a received SMS. (Like first part of DOTA).
The first filedownload everything OK, but the second after the creation of the ftp channel with WIP_CEV_OPEN event and a simple wip_getFileSize, I receive an WIP_CEV_ERROR and ev->content.error.errnum returns 550.
I don’t find any documentation about this error code.
That is most likely the FTP error 550 Access/Permission denied that you’ve received.
If you check the documentation you’ll see that there are two kinds of error codes you may receive. WIP error codes (negative) and other error codes that depend on what kind of service you’re using.
550 is the FTP error number for Access/Permission Denied. Are you sure that you have access to the file you want to do the operations on?
Problem solved!
I have a look on log file of FTP server.
As you suggest the error code 550 sound like Access Denied.
In fact in the second FTP session I request a bad file name.
I used a strcat instead of strcpy so the the file name was duplicated.