Remember
Register
Home
/
Support
/
Support Forum
/
X4 : How to Write local file and upload this by ftp ?
Digi Forum
All Activity
Q&A
Questions
Hot!
Unanswered
Tags
Categories
Users
Ask a Question
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.
All categories
Digi Remote Manager
(383)
Python
(1,016)
RF Solutions and XBee
(8,413)
Digi TransPort
(785)
Digi Connect Cellular
(443)
DAL
(4)
Embedded Devices
(4,160)
Google Coral
(2)
Rabbit
(3,194)
Console Servers
(353)
Modbus and Industrial Automation
(246)
Realport
(600)
Serial Servers
(836)
Satellite Modules
(25)
USB
(1,269)
Serial Cards
(715)
ConnectPort Display
(58)
Feedback/Wish List
(92)
Other/Legacy
(373)
X4 : How to Write local file and upload this by ftp ?
0
votes
Dear
I'm using ConnectPort X4:
1) from ftplib import FTP
no module named ftplib ??
2) I'm trying to open a local file:
logfile = open("log_file.csv, "a")
no file exist ???
Someone could be help me ?
Best regards.
ftp
library
asked
Oct 15, 2015
in
Digi Connect Cellular
by
Rolland
New to the Community
(
10
points)
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1 Answer
0
votes
Have you looked through the Samples in the ESP for Python? I seem to recall there was a sample that does this.
answered
Oct 15, 2015
by
mvut
Veteran of the Digi Community
(
15,107
points)
No, for ftp you must include in X4 a compatible library ftplib (python 2.4 !!!) , since X4 doesn't included it.
Roland,
That is what I am referring to. The Digi ESP for Python is a software tools that uses Python 2.4 to help you write your Python applications, compile and upload them to the Gateways. If I recall, one of the Samples provided in the ESP does what you want.
Please
log in
or
register
to add a comment.
...