Espruino WiFi improvements

Posted on
  • I've just updated the Espruino WiFi JavaScript files. Assuming you're using firmware 1v95 or later, you'll now have:

    • Flow control on WiFi receive - meaning no more FIFO_FULL errors if your JS code takes a long time to execute
    • Significantly less CPU load when receiving data over WiFi
    • Calling wifi.turbo(true, callback) will increase the transmission speed with the WiFi module by a factor of 8!
    • UDP transmit and receive
    • wifi.ping support
    • wifi.setHostname for setting the DNS name of wifi
    • wifi.setIP/setAPIP and getAPIP added for controlling static IPs and DNS


  • Thanks Gordon.
    Where can i find the docs or expamples for using UDP trans and recv ?
    Thanks
    Sacha

  • Until the docs themselves get published, you could use the test code as a reference: https://github.com/espruino/Espruino/blo­b/master/tests/test_dgram_socket.js

    It's meant to act just like the node.js version so there should be a few examples on the net was well.

  • Sorry asking here. Just got my Pixl.js. Wondering, which additional part I need to buy to enable wifi. APIs in my Pixl.js? If there is one...

  • Hi - probably the easiest solution is to get one of these: http://www.espruino.com/arduino-esp8266

    For some reason the board itself doesn't seem to work properly as it comes so you either need to use some jumper leads or do some soldering (it's documented on that page).

    However all you actually need is an ESP8266 with a voltage regulator, then it's just 4 wires. The only gotcha is a lot of the ESP8266 boards you buy now have USB - and that uses the two serial wires that you need :)

  • Thank you

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Espruino WiFi improvements

Posted by Avatar for Gordon @Gordon

Actions