I get some unwanted spaces, they are there indeed?
What errros are you getting? Try to build command stringfirst and print it:
FTPSERVER = "s" FTPUSER = "u" FTPPASS = "p"
a = ‘AT#FTPOPEN="’ +FTPSERVER+ ‘","’ +FTPUSER+ ‘","’ +FTPPASS+ ‘",0r’
print a print len(a)
The spaces I add just for better reading here.
We tried also to make a string first and this variable to AT#FTPOPEN.
The message we get is "ERROR"
However, I will check our code again for unwanted spaces.
Thank you.
OK, and do the print on module to be 100% sure string is correct, including the "/r". And set AT+CMEE=2 maybe you’ll get a more informative error message.
We found it. As you supposed it was a space. We don’t see it at that moment.
We use cookies to enhance your browsing experience and help us improve our websites. To improve our website, we carefully select third parties that use cookies to allow us to serve specific content and achieve the purposes set out in our cookie policy. For more information on how to make adjustments through your browser to the cookies being used on your device, please click Find Out More link. By closing this banner or continuing to browse our website, you agree to our use of such cookies. FIND OUT MORE
Hello Cosmin,
we work with GC864-PY FW 07.03.301.
we make a FTP connection to our server.
With this command it works without any problems
a = MDM.send(‘AT#FTPOPEN="<our serveraddress>","<user>","<password>",0r’,5)
We are going to read the settings from a config file and change to this:
FTPSERVER = <our serveraddress>
FTPUSER = <user>
FTPPASS = <password>
a = MDM.send(‘AT#FTPOPEN=" ‘ +FTPSERVER+ ‘ "," ‘ +FTPUSER+ ‘ "," ‘ +FTPPASS+ ‘ ",0r’,5)
This syntax don’t work. What could be wrong? Where is my mistake?
Thank you for your help.
Hi Michael,
When I copy from your post
I get some unwanted spaces, they are there indeed?
What errros are you getting? Try to build command stringfirst and print it:
The spaces I add just for better reading here.
We tried also to make a string first and this variable to AT#FTPOPEN.
The message we get is "ERROR"
However, I will check our code again for unwanted spaces.
Thank you.
OK, and do the print on module to be 100% sure string is correct, including the "/r". And set AT+CMEE=2 maybe you’ll get a more informative error message.
We found it. As you supposed it was a space. We don’t see it at that moment.
Thank you for assistance.
Thank you Michael for conclusion!