Search found 24 matches

by lucien2k
Thu Oct 29, 2015 3:04 pm
Forum: Programs, Libraries and Tools
Topic: urllib / urequests for Micropython
Replies: 31
Views: 45293

Re: urllib for Micropython

Ah of course, I don't work in python3 much so I completely forgot about that.
by lucien2k
Thu Oct 29, 2015 2:07 pm
Forum: Programs, Libraries and Tools
Topic: urllib / urequests for Micropython
Replies: 31
Views: 45293

Re: urllib for Micropython

Confirmed on the SSL, new version committed with that fix.

I'll see if I can put together some test cases for the weird memory errors I got while testing. I think it might be unicode related too.

Re: unicode support, it is mostly related to the "unicode" type (doesn't seem to exist).
by lucien2k
Thu Oct 29, 2015 1:23 pm
Forum: Programs, Libraries and Tools
Topic: urllib / urequests for Micropython
Replies: 31
Views: 45293

urllib / urequests for Micropython

UPDATE for moderators: urllib.urequest and urequests modules are now available in the MicroPython's standard library, micropython-lib: https://github.com/micropython/micropython-lib/tree/master/urllib.urequest https://github.com/micropython/micropython-lib/tree/master/urequests =====================...
by lucien2k
Tue Oct 27, 2015 2:05 pm
Forum: WiPy and CC3200 boards
Topic: Network, serial setup at boot
Replies: 11
Views: 12153

Re: Network, serial setup at boot

Thanks! It was based on Arik's code above (and definitely worked before). I'll fix and try again.
by lucien2k
Tue Oct 27, 2015 1:50 pm
Forum: WiPy and CC3200 boards
Topic: Network, serial setup at boot
Replies: 11
Views: 12153

Re: Network, serial setup at boot

I updated my wipy yesterday with the onewire fix, but having trouble with wlan now. I had it configured to connect to my wifi on boot using basically the same code here, but now it doesn't work. I tried doing it separately but now I get: >>> from network import WLAN >>> from os import dupterm >>> fr...
by lucien2k
Mon Oct 26, 2015 11:19 pm
Forum: WiPy and CC3200 boards
Topic: Onewire and DS18B20
Replies: 42
Views: 57127

Re: Onewire and DS18B20

It works (tried using the new library that Damien supplied)

Thank you very much guys, now to actually make something awesome with it.
by lucien2k
Thu Oct 22, 2015 9:56 pm
Forum: WiPy and CC3200 boards
Topic: Onewire and DS18B20
Replies: 42
Views: 57127

Re: Onewire and DS18B20

Just spotted some interesting discussion in the micropython board forum: http://forum.micropython.org/viewtopic.php?f=6&t=903

The library breaks with cpus under 120mhz, which might explain what is going on!
by lucien2k
Thu Oct 22, 2015 7:45 pm
Forum: WiPy and CC3200 boards
Topic: Onewire and DS18B20
Replies: 42
Views: 57127

Re: Onewire and DS18B20

I got a new sensor, still having the same issue.

I've committed a small fix to the code based on what I learned from the reset pulse but it hasn't helped.
by lucien2k
Thu Oct 22, 2015 8:06 am
Forum: WiPy and CC3200 boards
Topic: Sending email
Replies: 36
Views: 188252

Re: Sending email

urllib is another library that would be useful, I was planning to use a rest api to push data from the wipy to a central system.

I had a brief play with it because I figure it is 99% sockets and it is pure python, but if you already have something working that would be great.
by lucien2k
Thu Oct 22, 2015 7:50 am
Forum: WiPy and CC3200 boards
Topic: Onewire and DS18B20
Replies: 42
Views: 57127

Re: Onewire and DS18B20

I need to get a new sensor (been busy for the last couple of weeks at work). I realised I had it wired wrong and I think I have cooked it.

With my suspected broken sensor, I am getting the reset pulse now but not getting any data from it.