I have tried to use the FTP facility. One very small mistake I have noticed in the FTP.cs, in GetFile routine,
must be changed to :
I have written a very basic code to download a file from the Server to the Device. My code is :
FTP myFTP = new FTP();
bool ServerConnected = false;
return "GetFile Failure : " + e.ToString(); }
return "Failure : Timed Out";
Out of every 50 times I run this code I may just get one successfull session.
I must be doing something very wrong. Could you please advise me on this.
One other thing to do with OpenNETCF.Net but not with FTP, is that I use the ConnectionManager to establish GPRS connection. I get a GPRS connection, however when I manually look at the state of the GPRS by touching the antena symbol with stylus, the state of GPRS says Connect GPRS, instead of saying connected. For some reason the system has not registered the state of GPRS after connecting with ConnectionManager. Do I need to somehow register the state of the GPRS after programmatically establishing one, similar to registering the GSM after turning it ON.