<p dir="ltr">I didn't want to say anything against the STM mcu you mentioned in the doc, but the ESP was what first came to mind when I saw WIFI. Cool to see micropython is doing well on it! Supposedly the next version, esp32, will have Wi-Fi and ble.</p>
<div class="gmail_quote">On Jun 3, 2016 9:53 AM, "John Griessen" <<a href="mailto:john@industromatic.com">john@industromatic.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Micropython on the ESP8266 is a kickstarter I funded.  they just posted progress:<br>
<br>
================================MicroPython on the ESP8266=======================<br>
the next version of MicroPython on the ESP8266.  This is release v1.8.1, mainly containing performance improvements and bug fixes, plus a few new features.  Please not that the size of this firmware is greater than 512k (due to all the cool features!) and as such will not work on devices with only 512k of flash (for example the ESP-01 modules).<br>
<br>
A quick reference guide is part of the documentation and is found here: <a href="https://docs.micropython.org/en/latest/esp8266/esp8266/quickref.html" rel="noreferrer" target="_blank">https://docs.micropython.org/en/latest/esp8266/esp8266/quickref.html</a><br>
<br>
And don't forget the forum: <a href="https://forum.micropython.org/" rel="noreferrer" target="_blank">https://forum.micropython.org/</a><br>
<br>
Please find the firmware attached, and some more detail regarding the release below.  The md5sum of the firmware is 3c0ae5e45e1f902f4b1b53cb6c4619c1.<br>
<br>
Enjoy!<br>
<br>
Best regards,<br>
Paul and Damien.<br>
<br>
--------------------------------------------<br>
<br>
**** Changes in this release ****<br>
<br>
1. The most pressing issue with WebREPL - inability to connect more than<br>
5-6 times in row, and lockup going over that - was resolved. There was<br>
also a fix to make sure you can connect while an application is running,<br>
and break it using Ctrl+C. There are also reports of improvements with<br>
WebREPL file transfers for large files (it works pretty well for small<br>
files, like a typical Python source code), though that needs additional<br>
testing (we welcome your feedback).<br>
<br>
2. More complete filesystem interface ("os" module) is implemented,<br>
rename(), chdir(), getcwd().<br>
<br>
3. Better OSError error messages: they now include a short string with<br>
the error message name instead of just the numeric value.  This should<br>
help a lot to debug your code.<br>
<br>
4. Espressif OS error messages are now disabled by default (the messages<br>
like chg_A3:-180, etc).  If you want to see them again you need to<br>
execute esp.osdebug(0).<br>
<br>
5. The machine module has a few more methods, for timing pulses on a pin<br>
and for controlling interrupts:<br>
<br>
    microseconds = machine.time_pulse_us(pin, pulse_level)<br>
<br>
    irq_state = machine.disable_irq()<br>
    machine.enable_irq(irq_state)<br>
<br>
**** Preinstalled scripts and modules ****<br>
<br>
We pre-packaged bunch of useful scripts and modules to give you a quick<br>
start. All modules below are importable using "import <name>" (unless noted<br>
otherwise). Sources are available for all modules, so for more information<br>
please look them up.<br>
<br>
upysh<br>
    Source: <a href="https://github.com/micropython/micropython-lib/tree/master/upysh" rel="noreferrer" target="_blank">https://github.com/micropython/micropython-lib/tree/master/upysh</a><br>
    Very simple filesystem shell reminiscent of Unix shell, but using native<br>
    Python syntax. Use it like this:<br>
<br>
    from upysh import *<br>
    ls  # yes, it works like that!<br>
    cat("my_file")<br>
    newfile("my_new_file.txt")<br>
    help()<br>
<br>
http_client<br>
    This and following 3 scripts come from examples/networking/ in<br>
    MicroPython source repository. http_client issues an HTTP GET<br>
    request to <a href="http://google.com" rel="noreferrer" target="_blank">http://google.com</a> and prints the result. Don't look<br>
    for anything too fancy in it - it's just a redirect to https://<br>
    version with bunch of internal info. The point? It works!<br>
<br>
http_server<br>
    This is more interesting, you can connect to your module from<br>
    web browser (<a href="http://192.168.4.1:8080" rel="noreferrer" target="_blank">http://192.168.4.1:8080</a> is you connect to ESP8266<br>
    access point as we recommend), and see incrementing counter<br>
    in a browser. We don't provide more fancy HTTP server example<br>
    so far, but that one can get you started!<br>
<br>
http_client_ssl<br>
    You guessed, this connects to <a href="https://google.com" rel="noreferrer" target="_blank">https://google.com</a> . Just another<br>
    weird redirect will ensue, I'm afraid, it's not like 1990 with<br>
    web being simple and clean. The point? SSL works!<br>
<br>
http_server_ssl<br>
    If you connect to <a href="https://192.168.4.1:8443" rel="noreferrer" target="_blank">https://192.168.4.1:8443</a> with Firefox you can<br>
    see how heavy a number crunching game the SSL is - it takes several<br>
    seconds to establish a connection. Definitely needs an optimisation.<br>
    Don't even try with Chrome - it overloads poor ESP8266 with multiple<br>
    requests so it can't catch up.<br>
<br>
urllib.urequest<br>
    This is urllib.urequest module from micropython-lib<br>
    (<a href="https://github.com/micropython/micropython-lib/tree/master/urllib.urequest" rel="noreferrer" target="_blank">https://github.com/micropython/micropython-lib/tree/master/urllib.urequest</a>),<br>
    a micro version of the standard http.request module. This is how<br>
    you wouldd actually issue HTTP requests in your apps. In previous<br>
    release, this module was available as just "urequest", but with<br>
    packages supported for frozen modules in 1.8.1, it's now provided<br>
    under the full name. This release includes support for HTTPS<br>
    (note: server SSL certificates are not validated).<br>
<br>
urequests<br>
    Also comes from micropython-lib<br>
    (<a href="https://github.com/micropython/micropython-lib/tree/master/urequests" rel="noreferrer" target="_blank">https://github.com/micropython/micropython-lib/tree/master/urequests</a>),<br>
    and is a micro version of a getting more popularity "requests" module<br>
    (<a href="http://docs.python-requests.org" rel="noreferrer" target="_blank">http://docs.python-requests.org</a>).<br>
    It can do even more magic in one line than urllib.urequest. (But warning:<br>
    it may be less efficient than the latter, so if you can do something with<br>
    urllib.urequest, please use that). This release also acquires support for<br>
    HTTPS (note: server SSL certificates are not validated).<br>
<br>
ntptime<br>
    NTP support was voted #3 in the module survey, so was off list<br>
    as a stretch goal. But thanks to our users who did a research<br>
    how to do it in Python easily on the forum, here's surprise<br>
    out-of-band stretch goal implemented, first! ntptime.time()<br>
    will get you time in seconds since MicroPython epoch (which is<br>
    2000-01-01). You can even do ntptime.settime() to set system<br>
    time from NTP, and you can even put it in your boot.py for your<br>
    module to always have actual date/time. Caveat: it's all UTC now,<br>
    no timezone support yet. UTC time is a standard for Internet<br>
    servers (if it processes requests from around the globe anyway,<br>
    why bother with specific timezone, just use the default). You can<br>
    now try that at home (it feels great!).<br>
<br>
onewire<br>
neopixel<br>
ssd1306<br>
dht<br>
    These are preinstalled drivers for corresponding hardware components,<br>
    so you can start using them right away.  The dht module supports DHT11<br>
    and DHT22 devices, for example:<br>
<br>
    import dht, machine<br>
    d = dht.DHT22(machine.Pin(4))<br>
    d.measure() # take measurement<br>
    print(d.temperature(), d.humidity())<br>
_______________________________________________<br>
open_electroporator mailing list<br>
<a href="mailto:open_electroporator@cibolo.us" target="_blank">open_electroporator@cibolo.us</a><br>
<a href="http://cibolo.us/cgi-bin/mailman/listinfo/open_electroporator" rel="noreferrer" target="_blank">http://cibolo.us/cgi-bin/mailman/listinfo/open_electroporator</a><br>
</blockquote></div>