I have added a first version of urequests.
Supports get, post, custom http headers, cookies, basic http auth etc. Works in a very similar way to python-requests.
Available at https://github.com/lucien2k/wipy-urllib ... equests.py
Search found 24 matches
- Sun Nov 08, 2015 5:17 pm
- Forum: Programs, Libraries and Tools
- Topic: urllib / urequests for Micropython
- Replies: 31
- Views: 45279
- Fri Oct 30, 2015 8:19 pm
- Forum: WiPy and CC3200 boards
- Topic: Missing pyb, serial console and FTP problem.
- Replies: 25
- Views: 21609
Re: Missing pyb, serial console and FTP problem.
It seems to reset the micropython software at least. I have used it a few times when I have hung my wipy.
Glad you have got things working!
Glad you have got things working!
- Fri Oct 30, 2015 8:10 pm
- Forum: WiPy and CC3200 boards
- Topic: Missing pyb, serial console and FTP problem.
- Replies: 25
- Views: 21609
Re: Missing pyb, serial console and FTP problem.
Could it be windows firewall or something else? Odd that you can connect with telnet but not ftp.
If I connect using putty to 192.168.1.1 port 21, I get: "220 Micropython FTP Server". Assuming you get the same result as your filezilla?
If I connect using putty to 192.168.1.1 port 21, I get: "220 Micropython FTP Server". Assuming you get the same result as your filezilla?
- Fri Oct 30, 2015 8:07 pm
- Forum: Announcements and News
- Topic: MicroPython on the BBC micro:bit
- Replies: 26
- Views: 168521
Re: MicroPython on the BBC micro:bit
Very cool, so will it ship with MicroPython by default or will kids get a choice of language/system?
- Fri Oct 30, 2015 7:59 pm
- Forum: WiPy and CC3200 boards
- Topic: Missing pyb, serial console and FTP problem.
- Replies: 25
- Views: 21609
Re: Missing pyb, serial console and FTP problem.
I've attached a screenshot of the settings that work for me. It took me a little while to get it sorted (started with winscp, same as you).
- Fri Oct 30, 2015 7:48 pm
- Forum: WiPy and CC3200 boards
- Topic: Missing pyb, serial console and FTP problem.
- Replies: 25
- Views: 21609
Re: Missing pyb, serial console and FTP problem.
Are you connected to the wipy's wireless network?
Can you ping it?
Can you ping it?
- Fri Oct 30, 2015 4:21 pm
- Forum: Programs, Libraries and Tools
- Topic: urllib / urequests for Micropython
- Replies: 31
- Views: 45279
Re: urllib for Micropython
Pretty easy to change it to work like requests instead. It is unlikely that we'll end up with 1 monolithic library, it'll probably end up being a bunch of separate ones so you can pick and choose the functions you need (not everyone needs auth, cookies etc. especially when it is likely just API call...
- Fri Oct 30, 2015 3:10 pm
- Forum: WiPy and CC3200 boards
- Topic: Missing pyb, serial console and FTP problem.
- Replies: 25
- Views: 21609
Re: Missing pyb, serial console and FTP problem.
winscp doesn't work, I tried for a while with that too. I ended up having to download Filezilla instead.
- Fri Oct 30, 2015 10:44 am
- Forum: Programs, Libraries and Tools
- Topic: urllib / urequests for Micropython
- Replies: 31
- Views: 45279
Re: urllib for Micropython
With some help from Daniel and Damien, the issues are solved and a new version has been pushed.
I didn't realised we are so limited on memory, the new updates will help but there will be problems loading a page if it is bigger than about 10-20kb.
I didn't realised we are so limited on memory, the new updates will help but there will be problems loading a page if it is bigger than about 10-20kb.
- Fri Oct 30, 2015 12:02 am
- Forum: Programs, Libraries and Tools
- Topic: urllib / urequests for Micropython
- Replies: 31
- Views: 45279
Re: urllib for Micropython
Just to update, I PM'd my example to Daniel. There is definitely something a bit weird and it manifests as memory issues occasionally. This library does encounter problems with some sites, but works great for simple stuff. I don't get those problems with CPython and obviously the wipy has limited me...