1. 22 Feb, 2016 1 commit
    • philip's avatar
      Performance monitoring tool. · e516a0e9
      philip authored
      Squashed commit of the following:
      
      commit f1820af82bb5467d0c79c03290fca809b0273030
      Author: philip <philip@gladstonefamily.net>
      Date:   Sun Feb 21 15:08:31 2016 -0500
      
          Now uses userdata
      
      commit 74a2298f5f2d2b07097a9501046efb8d4061ec5e
      Merge: 4ffab15 716e6824
      Author: philip <philip@gladstonefamily.net>
      Date:   Sun Feb 21 13:54:40 2016 -0500
      
          Merge remote-tracking branch 'upstream/dev' into performance
      
          Conflicts:
          	app/platform/hw_timer.c
          	app/platform/hw_timer.h
      
      commit 4ffab15a2a15e0c6b2d7e93611a02be47bafdc79
      Author: philip <philip@gladstonefamily.net>
      Date:   Fri Feb 12 17:36:12 2016 -0500
      
          Simple low level performance monitoring tool
      
          Make it work with the new hw_timer code
      
      commit 944db2bdb8a2b725ba683c564b39f30f3b61e47f
      Author: philip <philip@gladstonefamily.net>
      Date:   Sun Feb 14 10:32:41 2016 -0500
      
          Initial version of the hw_timer as part of the platform
      
      Addressed review comments
      
      Add the binsize return
      e516a0e9
  2. 18 Feb, 2016 3 commits
  3. 17 Feb, 2016 1 commit
    • TerryE's avatar
      Add New Tasking I/F and rework GPIO, UART, etc to support it · 49733f6f
      TerryE authored
      As with the last commit this rolls up the follwowing, but include the various
      review comments on the PR.
      
      -   **Documentation changes**. I've added the taks FAQ as a stub new Extension
      developer FAQ, and split the old FAQ into a Lua Developer FAQ and a Hardware
      FAQ.
      
      -   **Tasking I/F**.  New `app/task/Makefile`, `app/task/task.c`,
      `app/include/task/task.h` and `app/Makefile` as per previous commit.  Cascade
      changes to `app/driver/uart.c`, `app/include/driver/uart.h`,
      `app/user/user_main.c` and `app/modules/node.c`
      
      -   **GPIO Rework** to `app/modules/gpio.c` and `pin_map.[hc]`, `platform.[hc]`
      in `app/platform`
      
      -   **Other Optimisations** Move the `platform_*_exists()` from
      `app/platform/common.c` to static inline declarations in `platform.h` as
      this generates faster, smaller code. Move lgc.a routines out of iram0.
      49733f6f
  4. 15 Feb, 2016 1 commit
  5. 14 Feb, 2016 1 commit
    • Henk Vergonet's avatar
      Add i2c based module for am2320 humidity sensor · a1c1e015
      Henk Vergonet authored
      Example use:
      > sda=1
      > scl=2
      > am2320.init(sda,scl)
      > rh, t = am2320.read()
      > print(string.format("Temperature: %s degrees C", t / 10))
      > print(string.format("RH: %s %%", rh / 10))
      
      signed-off-by: henk.vergonet@gmail.com
      a1c1e015
  6. 13 Feb, 2016 2 commits
  7. 09 Feb, 2016 2 commits
  8. 07 Feb, 2016 1 commit
    • Uri Shaked's avatar
      Fix secure MQTT connections · 31a62a9e
      Uri Shaked authored
      Call `espconn_secure_set_size()` before calling `espconn_secure_connect()`, similar to how the http module works
      31a62a9e
  9. 06 Feb, 2016 1 commit
    • Uri Shaked's avatar
      Fix secure TCP connections · ce498462
      Uri Shaked authored
      Call `espconn_secure_set_size()` before calling `esp_secure_connect()`, should fix issues like #710 and #520
      ce498462
  10. 05 Feb, 2016 1 commit
  11. 02 Feb, 2016 1 commit
  12. 01 Feb, 2016 1 commit
    • Johny Mattsson's avatar
      Fixes and enchancements for enduser_setup module. · 86839d6e
      Johny Mattsson authored
      Fixes:
      
      * Removed spurious \0 bytes being sent to the client in many cases.
      
      * Properly terminated 404 header.
      
      * Now including Content-length: header for index.html (including built-in).
      
        Clients otherwise had to wait for their own timeout before considering
        the page load complete, which resulting in an unpleasant sluggish
        experience.
      
      * Switched form submission to GET, as iOS sometimes does not include the
        body in the same packet as the POST header, which led to the module
        not finding the form values.
      
      * Added redirect after form submission to avoid blank-page-in-browser.
      
      * Moved common "enduser_setup" prefix to a lua_pushfstring() to reduce
        string literal overhead.
      
      * Replaced cached lua_State* with calls to lua_getstate(), as in other
        modules.
      
      * Fixed broken appending of MAC to the SSID.
      
      * Fixed up macro definitions to not break `if` clauses unintentionally.
      
      Enhancements:
      
      * Support for scanning for available WiFi networks, and picking from the list.
      
      * Support for retrieving the current WiFi station status.
      
      * Added "manual" mode, where the module does not (re)configure the AP setup,
        nor shut down automatically. Default is still automatic, as before.
      
      * Updated docs for new `enduser_setup.manual()` function.
      86839d6e
  13. 29 Jan, 2016 2 commits
  14. 28 Jan, 2016 2 commits
  15. 27 Jan, 2016 1 commit
  16. 26 Jan, 2016 3 commits
  17. 24 Jan, 2016 1 commit
  18. 23 Jan, 2016 6 commits
  19. 22 Jan, 2016 1 commit
  20. 21 Jan, 2016 1 commit
  21. 20 Jan, 2016 1 commit
  22. 19 Jan, 2016 1 commit
  23. 18 Jan, 2016 2 commits
    • Thomas Soëte's avatar
      ws2812 data buffer · 47b44229
      Thomas Soëte authored
      To create a size led long buffer:
      buffer = ws2812.newBuffer(size);
      
      To fill the buffer:
      buffer:fill(g, r, b)
      
      To get a particular led color:
      g, r, b = buffer:get(index)
      
      To set a particular led color:
      buffer:set(index, g, r, b);
      
      To send the buffer:
      buffer:write(pin);
      47b44229
    • Thomas Soëte's avatar
      Rewrite code to use UART1 instead of bit-banging. · 51bb8a50
      Thomas Soëte authored
      It allows keeping interrupts enabled but force to use GPIO2.
      51bb8a50
  24. 15 Jan, 2016 1 commit
  25. 14 Jan, 2016 2 commits