Search found 22 matches

by andrew
Mon Nov 02, 2015 9:51 pm
Forum: WiPy and CC3200 boards
Topic: MQTT publish
Replies: 0
Views: 6634

MQTT publish

This is a hack. I repeat, this is a hack. Do not run your nuclear power station control system with it. This code is a conversion of some javascript I found here http://forum.espruino.com/conversations/258515/ for the Espruino. def mtStr(s): return bytes([len(s) >> 8, len(s) & 255]) + s.encode('utf-...
by andrew
Sat Oct 31, 2015 7:21 pm
Forum: WiPy and CC3200 boards
Topic: NTP library for WiPy
Replies: 9
Views: 6401

Re: NTP library for WiPy

Ah, good point. Sorry about that, I cobbled that code example together from two different places and didn't try it out myself. Sorry you wasted time on it, but I bet you understand the code better now :D

Andrew
by andrew
Wed Oct 28, 2015 9:55 pm
Forum: WiPy and CC3200 boards
Topic: NTP library for WiPy
Replies: 9
Views: 6401

Re: NTP library for WiPy

Hi Andrew, Thanks for this job. Unfortunately it does not work for me. In fact, it does not work the same each time it runs (I get different time.localtime() after each try). Sometimes, the time is quite near of the real time. Sometimes quite far ex: (2015, 10, 27, 22, 9, 44, 1, 300) (2015, 1, 1, 0...
by andrew
Mon Oct 26, 2015 1:47 pm
Forum: WiPy and CC3200 boards
Topic: OTA update problem
Replies: 22
Views: 7117

Re: OTA update problem

I wondered about some kind of physical keying that stops you plugging them together wrongly. Or maybe just an outline of the WiPy on the expansion board to show how it goes.

Andrew
by andrew
Sun Oct 25, 2015 4:21 pm
Forum: WiPy and CC3200 boards
Topic: Set RTC time on boot from timezonedb.com
Replies: 4
Views: 1883

Re: Set RTC time on boot from timezonedb.com

Nice!

Andrew
by andrew
Sun Oct 25, 2015 9:02 am
Forum: WiPy and CC3200 boards
Topic: NTP library for WiPy
Replies: 9
Views: 6401

NTP library for WiPy

I've hacked a first version of an NTP client library for the WiPy, adapted from this project: https://pypi.python.org/pypi/ntplib/0.3.3 Usage is as follows (don't use this code literally as is; it has a sneaky bug - see http://forum.micropython.org/viewtopic.php?f=11&t=1068#p6460 ): import untplib c...
by andrew
Sun Oct 25, 2015 8:50 am
Forum: WiPy and CC3200 boards
Topic: WiPy dead after connecting SafeBoot pin with VIN
Replies: 16
Views: 4752

Re: WiPy dead after connecting SafeBoot pin with VIN

I did exactly the same.... Now the WiPy is booting from factory firmware all the time. Is there any chance to change the SafeBoot pin? I tried pulling it down to ground with a wire to the ground pin but that didn't work for me - it's worth trying though. Otherwise as I say mine starting working aga...
by andrew
Fri Oct 23, 2015 4:06 pm
Forum: Programs, Libraries and Tools
Topic: Simple terminal (VT100) editor widget (and other widgets)
Replies: 22
Views: 10430

Re: Simple terminal (VT100) editor widget

@andrew I do not know why it does not load. Did you upgrade WiPy to the latest version of the firmware? On the other hand, I have seen difficulties in the memory handler of micropythin with the Linux port, which I did not expect. I'm still trying to replicate that. Regards Ah, I hadn't thought of u...
by andrew
Fri Oct 23, 2015 8:47 am
Forum: Programs, Libraries and Tools
Topic: Simple terminal (VT100) editor widget (and other widgets)
Replies: 22
Views: 10430

Re: Simple terminal (VT100) editor widget

on my WiPy but it seems to run out of memory even when freshly booted. Any ideas? For me it loaded fine after I rewrote my main.py to use lazy imports and did a gc.collect() before trying to import wipye. mem_free was around 52-53k. However, I was not able to do anything once it was loaded. It didn...
by andrew
Fri Oct 23, 2015 8:00 am
Forum: Programs, Libraries and Tools
Topic: Simple terminal (VT100) editor widget (and other widgets)
Replies: 22
Views: 10430

Re: Simple terminal (VT100) editor widget

@andrew I handcrafted a smaller version of wipye, just as a trial. It's attached. It has like 70 lines less of code and consumes 3k less in memory. Almost all functions are still there. It seems, that the size of the source code is more the limiting factor than the parsed memory footprint. I do not...