Avatar for user75246

user75246

Member since Mar 2017 • Last active Apr 2017
  • 2 conversations
  • 3 comments

Most recent activity

  • in ESP8266
    Avatar for user75246

    Thanks for taking a look at this Ollie.

    I've had the same results doing as you've done. I believe the garbage collector is admirably quick. My code is separated in such a way its not easy to copy and paste here.

    Effectively I'm trying to scan for available networks then iterate over them to see if I have an associtated ssid-password pair stored in eeprom. Then with those available, attempt to connect.

    I'm trying an approach which limits the scope (therefore lifetime) of the larger lists as well as exploring compiling the Espruino binaries as per https://github.com/espruino/Espruino/blo­b/master/README_Building.md#for-esp8266

    Thanks again

  • in ESP8266
    Avatar for user75246

    Hi all,

    I've been knocking together an IoT device using Espruino and came across an issue whilst testing in the centre of London. Where I am sat, wifi.scan() is returning around 30 access points which is eating up approximately 26% of the 1700 js variables I have available on the ESP8266.

    Obviously the memory used will vary based on location and therefore is a pretty serious point of failure in my project.

    Can I suggest an additional feature to limit the number of returned access points (i.e. Wifi.scan(callback, limit)) such that the first 0-limit elements are added to RAM?

    Thanks for your help in advance.

    Chris

    Note: I've raised this as an issue here .

  • in ESP8266
    Avatar for user75246

    I'm exploring the Espruino command line tool for uploading my sketches to an ESP8266 via this NPM module and so far its been great/intuitive.

    I'm using the command line instead of the Web IDE as I prefer to modularise my code, edit it within Atom.io and run tools like eslinting etc.

    Exploring the IDE however I have found its possible to upload sketches over wifi using the "Connect over TCP Address" option (see here for details) and wondered how this is achieved?!

    While the Espruino module claims "it is used directly by the Espruino Web IDE" I don't see anyway within the code to connect via TCP (c.f. the port option).

    Thanks for any help in advanced. I understand this is a rather niche use of the Espruino. The aim would be to allow for wireless updates

    Footnote: Espruino has blown my mind. After working with Arduino and all its amazingness, I feel like Espruino has opened up a whole new world so cudos to everyone involved!!

Actions