1. 04 Nov, 2021 1 commit
    • Johny Mattsson's avatar
      Make node.output() RTOS thread safe. · a0c9085c
      Johny Mattsson authored
      Also removed old, very unsafe node.osoutput(). We're now integrating cleanly
      with the IDF/newlib way of redirecting stdout.
      
      Added necessary depends in Kconfig to ensure VFS support is enabled, as
      otherwise you'd only get a mysterious crash when attempting to enable
      output redirection.
      a0c9085c
  2. 22 Oct, 2021 1 commit
  3. 20 Oct, 2021 1 commit
    • Johny Mattsson's avatar
      Switch to IDF-provided VFS and standard `io` module. · a2ba49e3
      Johny Mattsson authored
      The IDF-provided VFS resolves several issues:
      
       - The IDF components having a different view of the (virtual) file system
         compared to the Lua environment.
      
       - RTOS task/thread safety. Our legacy VFS was only ever safe to use
         from the LVM thread, which limited its usability. Upgrading it
         would have effectively required a reimplementation of the IDF VFS,
         which would have been a bigger task with larger on-going maintenance
         issues.
      
       - We're no longer needing to maintain our own SPIFFS component.
      
       - We're no longer needing to maintain our own FATFS component.
      
       - The legacy of the 8266's lack of standard C interface to the file system
         is no longer holding us back, meaning that we can use the standard
         Lua `io` module rather than the cobbled-together swiss army knife
         also known as the file module.
      
      Of course, the downside is that we'll either have to declare a backwards
      breakage in regard to the file module, or provide a Lua shim for the old
      functions, where applicable.
      
      Also included is some necessary integer type fixups in unrelated code,
      which apparently had depended on some non-standard types in either the
      SPIFFS or FATFS headers.
      
      A memory leak issue in the sdmmc module was also found and fixed while
      said module got switched over to the Espressif VFS.
      
      Module documentation has been updated to match the new reality (and I
      discovered in some places it wasn't even matching the old reality).
      a2ba49e3
  4. 05 Oct, 2021 1 commit
  5. 16 Sep, 2021 1 commit
  6. 09 Sep, 2021 2 commits
  7. 26 Aug, 2021 1 commit
  8. 25 Aug, 2021 1 commit
  9. 22 Aug, 2021 1 commit
  10. 29 Jul, 2021 1 commit
  11. 28 Jul, 2021 1 commit
  12. 22 Jul, 2021 1 commit
  13. 20 Jul, 2021 1 commit
    • Johny Mattsson's avatar
      idf4: part 2.2 - update wifi & eth modules to new APIs · d2f8121e
      Johny Mattsson authored
      Only compile-tested so far.
      
      Of note is that the WiFi auto-connect (flag) functionality has been removed
      from the IDF, and as a follow-on so has the "auto" field in the wifi config.
      
      On the Ethernet side, support for the TLK110 PHY seems to have been removed,
      but on the other hand there is now new support for several others.
      d2f8121e
  14. 15 Jul, 2021 1 commit
  15. 23 May, 2021 1 commit
    • serg3295's avatar
      Fix ledc, otaupgrade, pulsecnt, sdmmc, sjson, touch docs (#3436) · 8e0e0cb3
      serg3295 authored
      ledc.md - formatting, add object name
      otaupgrade.md - formatting, add 'Syntax' section
      pulsecnt.md - formatting, fix syntax pulsecnt.create, add object name
      sdmmc.md - fix typos
      sjson.md - formatting, add `Parameters` section
      touch.md - formatting, add object name, fix Returns in tp:read()
      8e0e0cb3
  16. 19 May, 2021 1 commit
  17. 27 Apr, 2021 1 commit
  18. 02 Apr, 2021 1 commit
  19. 14 Feb, 2021 1 commit
  20. 22 Jan, 2021 1 commit
  21. 17 Jan, 2021 1 commit
  22. 05 Jan, 2021 1 commit
  23. 22 Aug, 2020 2 commits
  24. 27 Jul, 2020 1 commit
  25. 30 Jun, 2020 1 commit
  26. 18 May, 2020 1 commit
  27. 27 Apr, 2020 1 commit
  28. 26 Feb, 2020 1 commit
  29. 11 Feb, 2020 1 commit
  30. 09 Feb, 2020 1 commit
  31. 27 Oct, 2019 1 commit
    • John Lauer's avatar
      Add touch sensor module (#2863) · 9a5327ca
      John Lauer authored
      * Touch module 1st checkin
      * ESP32. Check-in 2 for Touch sensor module
      * ESP32: Touch module. Sample Lua code.
      * ESP32: Latest YouTube vid
      * ESP32: Touch docs update
      * Added opt_* methods for value retrieval
      9a5327ca
  32. 12 Aug, 2019 1 commit
  33. 22 Jul, 2019 1 commit
  34. 20 Jul, 2019 1 commit
  35. 06 Jul, 2019 1 commit
    • Johny Mattsson's avatar
      OTA support for ESP32 (#2812) · ca89bff0
      Johny Mattsson authored
      * Implemented otaupgrade module.
      
      * Added partition table example for otaupgrade.
      
      * Copy-paste omission. Whoops.
      
      * Updated otaupgrade docs after review.
      ca89bff0
  36. 04 Jul, 2019 1 commit
    • Johny Mattsson's avatar
      Improved crypto module for ESP32, now with HMAC (#2815) · e11087bf
      Johny Mattsson authored
      * Leaner, meaner crypto module; now with HMAC
      
      Based on my testing, mbedtls pulls in all its algorithm regardless of
      whether the NodeMCU crypto module was using them or not. As such, the
      space savings from omitting algorithms were only in the tens of bytes.
      
      By switching to using the mbedtls generic message digest interface, the
      crypto module itself could be shrunk in size and complexity. Despite
      adding support for HMAC on all algorithms (plus including RIPEMD160),
      this version is 330 bytes smaller.
      
      * Updated crypto module docs.
      
      * Removed superfluous brackets in crypto docs.
      
      Copy-paste considered harmful... >.>
      e11087bf
  37. 12 Jun, 2019 1 commit
    • John Lauer's avatar
      ESP32: Pulse counter module released (#2739) · 8b9794b9
      John Lauer authored
      * ESP32: Added pulsecnt module
      
      The pulsecnt module let's you use the ESP32's pulse counter capabilities from Lua.
      
      * ESP32: Pulsecnt module. Better/faster callback.
      
      Reduced the amount of callback variables to speed things up and shift more logic to Lua than in the C code.
      
      * ESP32: Completed docs for pulsecnt
      
      * ESP32: Final release of pulsecnt
      
      * ESP32: Production release of pulsecnt
      
      * ESP32: Release (tweaked docs)
      
      * ESP32: Pulse Counter Release. Cleaned up .gitignore
      
      * ESP32: Pulse counter release (changed ch1 gpio to int to match ch0)
      8b9794b9
  38. 10 Jun, 2019 1 commit
    • Skirmantas Lauzikas's avatar
      ESP32: Add option to set IP/dns config (#2560) · 6d0e4579
      Skirmantas Lauzikas authored
      * ESP32: Add option to set IP/dns config
      
      This commit adds support for setting:
      * Hostname
      * Static IP / Dns server (Sta mode)
      * Changing AP network ip config
      * Setting DNS server IP for DHCP
      
      * ESP32: Documentation for setting IP/dns/hostname config
      
      * Documented new functions
      * sethostname() now returns true if success
      6d0e4579