Unable to start/stop FTP server

Questions and discussion about The WiPy 1.0 board and CC3200 boards.
Target audience: Users with a WiPy 1.0 or CC3200 board.
Post Reply
PCA
Posts: 10
Joined: Tue Oct 27, 2015 10:20 pm

Unable to start/stop FTP server

Post by PCA » Wed Dec 16, 2015 8:51 pm

Hi all, I want to stop the FTP server during the execution of my python code.
I tried :

Code: Select all

import network
network.server.deinit()
but I get :

TypeError: argument num/types mismatch

Same error with :

Code: Select all

network.server.isrunning()
Any idea ?

User avatar
danicampora
Posts: 342
Joined: Tue Sep 30, 2014 7:20 am
Contact:

Re: Unable to start/stop FTP server

Post by danicampora » Wed Dec 16, 2015 9:37 pm

Hello,

I just added an example to the docs, should be available soon. You need to create an instance first. Do it like this:

Code: Select all

import network
s = network.server()
s.deinit() # disable the server
# enable the server again with new settings
s.init(login=('user', 'password'), timeout=600)

PCA
Posts: 10
Joined: Tue Oct 27, 2015 10:20 pm

Re: Unable to start/stop FTP server

Post by PCA » Sun Dec 20, 2015 9:38 pm

Thanks danicampora.
Works fine.
Pascal

Post Reply