1. 01 Aug, 2019 1 commit
  2. 27 Jul, 2019 2 commits
    • Nathaniel Wesley Filardo's avatar
      Simplify and tidy SNTP (#2700) · 7d387dd4
      Nathaniel Wesley Filardo authored
      * list_ref can become LUA_REFNIL, because that's what rawgeti returns
        for LUA_NOREF.  Defensively guard for this, rather than falling into
        the sntp_dolookups loop with nil on the stack.
      
      * set_repeat_mode should not call itself, but should rather always do
        what it's going to do and then optionally do the rest if directed.
      
      * sntp_sync should not try to special case the single string argument:
        we should be queueing that name for DNS resolution, too.  Towards that
        end, if we are given a single string, build a table and make that the
        list_ref and call off to sntp_dolookups, just like we otherwise do.
      
      FIXES: #2699
      7d387dd4
    • Gregor Hartmann's avatar
      Add support for DCHP NTP server (option 42) (#2709) · 73e6651f
      Gregor Hartmann authored
      * Add DHCP option 42 / NTP
      
      * Update dhcp.c
      
      * resolve merge conflict
      
      * add lineend at end of file
      
      * fix merge conflict resolution error
      73e6651f
  3. 23 Jul, 2019 3 commits
  4. 21 Jul, 2019 1 commit
    • Johny Mattsson's avatar
      Major cleanup - c_whatever is finally history. (#2838) · 526d21da
      Johny Mattsson authored
      The PR removed the bulk of non-newlib headers from the NodeMCU source base.  
      app/libc has now been cut down to the bare minimum overrides to shadow the 
      corresponding functions in the SDK's libc. The old c_xyz.h headerfiles have been 
      nuked in favour of the standard <xyz.h> headers, with a few exceptions over in 
      sdk-overrides. Again, shipping a libc.a without headers is a terrible thing to do. We're 
      still living on a prayer that libc was configured the same was as a default-configured
      xtensa gcc toolchain assumes it is. That part I cannot do anything about, unfortunately, 
      but it's no worse than it has been before.
      
      This enables our source files to compile successfully using the standard header files, 
      and use the typical malloc()/calloc()/realloc()/free(), the strwhatever()s and 
      memwhatever()s. These end up, through macro and linker magic, mapped to the 
      appropriate SDK or ROM functions.
      526d21da
  5. 16 Jul, 2019 1 commit
    • Nathaniel Wesley Filardo's avatar
      MQTT tweaks (#2822) · 9f8b74de
      Nathaniel Wesley Filardo authored
      * mqtt:connect() secure parameter should be boolean
      
      Continue to honor the old 0/1 values, but make them undocumented and add
      a deprecation warning to the code and docs.  Eventually, this should go
      away.
      
      * mqtt: rip out deprecated autoreconnect
      
      * mqtt: expose all the callbacks via :on
      9f8b74de
  6. 14 Jul, 2019 1 commit
  7. 11 Jul, 2019 1 commit
  8. 08 Jul, 2019 1 commit
    • Marcel Stör's avatar
      Save the post data in a file on the filesystem (#2810) · 0398c336
      Marcel Stör authored
      * Use cross-browser JS for query params in EUS
      
      * Update EUS doc to explain how to use parameters
      
      * Remove ; in Lua code
      
      * Rewrite the endpoint table
      
      * Do not use properties as global Lua variables
      
      * remove enduser_setup.html.gz
      
      * rename folder 'eus' to 'enduser_setup'
      
      * Change input type for password to "password"
      
      * Replace outdated captive portal screen shot
      0398c336
  9. 05 Jul, 2019 1 commit
  10. 22 Jun, 2019 1 commit
  11. 19 Jun, 2019 1 commit
  12. 01 Jun, 2019 1 commit
  13. 25 May, 2019 1 commit
  14. 20 May, 2019 1 commit
  15. 19 May, 2019 1 commit
  16. 17 May, 2019 1 commit
  17. 08 May, 2019 1 commit
  18. 07 May, 2019 1 commit
  19. 01 May, 2019 1 commit
  20. 28 Apr, 2019 2 commits
    • devsaurus's avatar
      u8g2: fix return value · b7a99358
      devsaurus authored
      b7a99358
    • Arnim Läuger's avatar
      Update u8g2 to v2.25.10 (#2735) · 530c353f
      Arnim Läuger authored
      * Upgrade u8g2 and add updateDisplayArea bindings
      
      * u8g2 2.25.10
      
      * add displays for 2.24.3 and 2.25.10
      
      * remove workaround for hal pointer and make use of u8x8's user_ptr
      
      * fix doc
      
      * add binding for `updateDisplay()`
      530c353f
  21. 11 Apr, 2019 1 commit
  22. 09 Apr, 2019 1 commit
  23. 08 Apr, 2019 1 commit
  24. 05 Apr, 2019 5 commits
    • Terry Ellison's avatar
    • Terry Ellison's avatar
      SDK 3.0 release (#2692) · 9a471079
      Terry Ellison authored
      * Rebaseline firmware to non-OS SDK version 3.0
      * Note that SDK version 3.0 introduces the concept of a Flash Partition Table(PT).  This is located at Flash offset 0x10000 in our firmware build.
      * The firmware is now PT aware with both LFS and SPIFFS taking their partition size and location from the PT
      * A new tool `tools/nodemcu-partition.py` is now used to initialise these data and can also download LFS and SPIFFS images to these partitions.
      9a471079
    • Nathaniel Wesley Filardo's avatar
      Remove moribund C ds18b20 module (#2492) · b6cd2c3e
      Nathaniel Wesley Filardo authored
      Just use Lua speaking OW (via C) instead.
      b6cd2c3e
    • Nathaniel Wesley Filardo's avatar
      mbedtls bump to 2.7.9 (#2655) · f0565ea5
      Nathaniel Wesley Filardo authored
      No major fixes, but was looking anyway.
      
      Specifically, to
      https://github.com/ARMmbed/mbedtls.git 079e813949251be1e7a9d395abd20b2c63422787
      f0565ea5
    • Natalia's avatar
      I2C sw driver with support of multiple buses, Slow, Fast, FastPlus, and... · ab61e9c0
      Natalia authored
      I2C sw driver with support of multiple buses, Slow, Fast, FastPlus, and user-defined speed selection (#2465)
      
      * I2C driver speed-up, i2c.SLOW, i2c.FAST and user-defined speed selection
      
      * - Multiple buses (up to 10) with different speeds on each bus
      - Standard(Slow, 100kHz), Fast(400kHz) and FastPlus(1MHz) modes or an 
      arbitrary clock speed
      - Sharing SDA line over multiple I²C buses to save available pins
      - GPIO16 pin can be used as SCL pin, but it does not support clock 
      stretching and selected bus will be limited to FAST speed.
      
      * Dynamic memory allocation, error checks, simplification, timing tweaks.
      
      * Separated the code of old driver for better compatibility and simplicity
      
      * Change of driver interface
      
      * Add bus status check in setup(); simplify getDC(); remove unnesessary lines in ACK read/write
      
      * Fix for moved doc file and trailing whitespaces
      ab61e9c0
  25. 24 Mar, 2019 1 commit
  26. 21 Mar, 2019 1 commit
  27. 23 Feb, 2019 3 commits
    • Arnim Läuger's avatar
      DHT11 read sometimes failed with checksum error (#2679) · ebd147b3
      Arnim Läuger authored
      * DHT11 read sometimes failed with checksum error.
      
      The code assumed DHT11 devices only ever return zero in the temperature and humidity decimal fraction bytes. The datasheet doesn't guarantee this is the case, and by observation I have noticed that indeed the DHT11 may sometimes return another number, usually close to zero. This means that the code would fail with a checksum error, as the fraction bytes were not included when the checksum was calculated. These bytes are now taken into account and also returned as part of the measurement.
      
      This also means that the related dht.read() function is non-functional. If you have a DHT11 device that returns a non-zero decimal part, dht.read() will interpret it as a DHT22 result and return the wrong measurement. For this reason dht.read() should be retired. This patch does not address this issue.
      ebd147b3
    • ziggurat29's avatar
    • ziggurat29's avatar
      added MSVC project configuration for host-side tools (#2665) · 62789da0
      ziggurat29 authored
      Added MSVC project configuration (@ziggurat29) and support of MinGW (@TerryE) for host-side`luac.cross` tool
      62789da0
  28. 19 Feb, 2019 1 commit
  29. 17 Feb, 2019 1 commit
  30. 16 Feb, 2019 1 commit