Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow using both bme280 addresses simultaneously #3124

Closed
wants to merge 77 commits into from

Commits on Jul 23, 2019

  1. Configuration menu
    Copy the full SHA
    14c1b8f View commit details
    Browse the repository at this point in the history
  2. Add telnet example

    TerryE committed Jul 23, 2019
    Configuration menu
    Copy the full SHA
    ba03cb0 View commit details
    Browse the repository at this point in the history
  3. Updates following JM review

    TerryE committed Jul 23, 2019
    Configuration menu
    Copy the full SHA
    bc98174 View commit details
    Browse the repository at this point in the history
  4. Rebased against current dev

    TerryE committed Jul 23, 2019
    Configuration menu
    Copy the full SHA
    39bb60e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    522b1d0 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2019

  1. Merge pull request nodemcu#2836 from TerryE/dev-new-lua.c

    Lua 5.1 to 5.3 realignement phase 1
    TerryE committed Sep 7, 2019
    Configuration menu
    Copy the full SHA
    fff9f95 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2019

  1. Configuration menu
    Copy the full SHA
    32ad759 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2019

  1. Configuration menu
    Copy the full SHA
    4c3d45e View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2019

  1. Remove superfluous module def

    marcelstoer committed Sep 21, 2019
    Configuration menu
    Copy the full SHA
    81e213a View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2019

  1. Configuration menu
    Copy the full SHA
    04287ac View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2019

  1. Deprecate crypto.to{Hex,Base64} (nodemcu#2929)

    The internal implementation already preferentially forwards to the
    encoder module, so we should just remove these functions as they confuse
    people into thinking that we don't have their inverses (see the feature
    request nodemcu#2907).
    
    Update the docs to refer to the encoder version and add deprecation
    warnings to the runtime implementations.
    nwf committed Sep 30, 2019
    Configuration menu
    Copy the full SHA
    043046d View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2019

  1. Fix typos

    marcelstoer committed Oct 30, 2019
    Configuration menu
    Copy the full SHA
    f3044e1 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2019

  1. fix lfs upload issue

    Matsievskiy S.V committed Nov 13, 2019
    Configuration menu
    Copy the full SHA
    0e34f7d View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2019

  1. Merge pull request nodemcu#2961 from seregaxvm/lfsfix

    fix lfs upload issue
    TerryE committed Nov 14, 2019
    Configuration menu
    Copy the full SHA
    f3b4984 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2019

  1. Configuration menu
    Copy the full SHA
    e3935de View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2019

  1. Configuration menu
    Copy the full SHA
    9a2579d View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2019

  1. Configuration menu
    Copy the full SHA
    c7d0f83 View commit details
    Browse the repository at this point in the history
  2. Fixes for ws2812 and ws2812_effects (nodemcu#2953)

    * clean effects library
    * Fix several issues in ws2812 and effects
    * Implement working way of calling shift from callback
    HHHartmann authored and marcelstoer committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    b179f30 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4fc2b85 View commit details
    Browse the repository at this point in the history
  4. New net.if.info call to show LwIP information (nodemcu#2862)

    * Remove app/include/netif/wlan_lwip_if.h
    
    This file appears to be unused in our tree.
    
    * New `net.if.info` call to show LwIP information
    
    This is a generalization of `wifi.sta`'s and `wifi.ap`'s `getip` and
    `getmac` calls.  I don't propose to deprecate those, but perhaps we
    should, in the documentation, point users at this function instead.
    
    The direct motivation is to permit continued use of DHCP-provided NTP
    servers in a future where
    nodemcu#2819 has landed, now
    that nodemcu#2709 is in the
    tree.  But rather than exposing just that information, a more general
    interface seems useful.
    nwf authored and marcelstoer committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    f85c278 View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2019

  1. Configuration menu
    Copy the full SHA
    d84da36 View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2019

  1. SSL rampage (nodemcu#2938)

    * Remove stale putative MD2 support
    
    This hasn't worked in a while, presumably since one of our upstream
    merges.  Don't bother making it work, since MD2 is generally considered
    insecure.
    
    * Land mbedtls 2.16.3-77-gf02988e57
    
    * TLS: remove some dead code from espconn_mbedtls
    
    There was some... frankly kind of scary buffer and data shuffling if
    ESP8266_PLATFORM was defined.  Since we don't, in fact, define that
    preprocessor symbol, just drop the code lest anyone (possibly future-me)
    be scared.
    
    * TLS: espconn_mbedtls: run through astyle
    
    No functional changes
    
    * TLS: espconn_mbedtls: put the file_params on the stack
    
    There's no need to malloc a structure that's used only locally.
    
    * TLS: Further minor tidying of mbedtls glue
    
    What an absolute shitshow this is.  mbedtls should absolutely not
    be mentioned inside sys/socket.h and app/mbedtls/app/lwIPSocket.c is not
    so much glue as it as a complete copy of a random subset of lwIP; it
    should go, but we aren't there yet.
    
    Get rid of the mysterious "mbedlts_record" struct, which housed merely a
    length of bytes sent solely for gating the "record sent" callback.
    
    Remove spurious __attribute__((weak)) from symbols not otherwise
    defined and rename them to emphasize that they are not actually part of
    mbedtls proper.
    
    * TLS: Rampage esp mbedtls glue and delete unused code
    
    This at least makes the shitshow smaller
    
    * TLS: lwip: fix some memp definitions
    
    I presume these also need the new arguments
    
    * TLS: Remove more non-NodeMCU code from our mbedtls
    
    * TLS: drop support for 1.1
    
    Depending on who you ask it's either EOL already or EOL soon, so
    we may as well get rid of it now.
    nwf committed Dec 27, 2019
    Configuration menu
    Copy the full SHA
    bf8f14b View commit details
    Browse the repository at this point in the history
  2. 3 Configuration menu
    Copy the full SHA
    52a1587 View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2019

  1. Add DCC decoder module (nodemcu#2905)

    vsky279 authored and marcelstoer committed Dec 28, 2019
    Configuration menu
    Copy the full SHA
    1652c0c View commit details
    Browse the repository at this point in the history

Commits on Dec 30, 2019

  1. Polish Lua examples (nodemcu#2846)

    * Add missing globals from luacheck config
    
    * Fix luacheck warnings in all lua files
    
    * Re-enable luacheck in Travis
    
    * Speed up Travis by using preinstalled LuaRocks
    
    * Fix more luacheck warnings in httpserver lua module
    
    * Fix DCC module and add appropriate definitions to luacheck config.
    
    * Change inline comments from ignoring block to only ignore specific line
    
    * Add Luacheck for Windows and enable it for both Windows and Linux
    
    * Change luacheck exceptions and fix errors from 1st round of polishing
    
    * Add retry and timeout params to wget
    galjonsfigur authored and nwf committed Dec 30, 2019
    Configuration menu
    Copy the full SHA
    bcb669a View commit details
    Browse the repository at this point in the history

Commits on Jan 1, 2020

  1. Configuration menu
    Copy the full SHA
    7ed3d00 View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2020

  1. Add CRC check (nodemcu#2992)

    Also clean-up a nasty `ow` module example.
    vsky279 authored and marcelstoer committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    8c08e76 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2020

  1. Configuration menu
    Copy the full SHA
    5278944 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2020

  1. Configuration menu
    Copy the full SHA
    1c83f02 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2020

  1. Configuration menu
    Copy the full SHA
    49f25bd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    76e9f1a View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2020

  1. Configuration menu
    Copy the full SHA
    9fb8a2f View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2020

  1. Configuration menu
    Copy the full SHA
    df83908 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ec8622f View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2020

  1. Configuration menu
    Copy the full SHA
    1851a73 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2020

  1. net: rename net.if.info to net.ifinfo (nodemcu#3033)

    Reserved words are always reserved in Lua, so let's not have people
    typing net["if"]...
    nwf committed Feb 23, 2020
    Configuration menu
    Copy the full SHA
    31d4714 View commit details
    Browse the repository at this point in the history
  2. Bugfix conn metatable method call (nodemcu#3012)

    Here `conn` is net.socket instance, so it should be called as one.
    Otherwise request is very likely to end up with crash and PANIC.
    
    nwf edited in light of bcb669a
    edzius authored and nwf committed Feb 23, 2020
    Configuration menu
    Copy the full SHA
    1577988 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2020

  1. Configuration menu
    Copy the full SHA
    c116d9d View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2020

  1. WIP: MQTT fixes (nodemcu#2986)

    * mqtt: expose "connfail" callback via :on()
    
    This makes it just like all the other callbacks in the module and is a
    revision of behavior called out in
    nodemcu#2967
    
    * mqtt: clarify when puback callback fires
    
    * mqtt: Don't reference stack buffers from the heap
    
    The confusingly-named "mqtt_connection_t" object is just a triple of
      - a serialized mqtt message pointer and length
      - a buffer pointer (to which the above can be written)
      - a message identifier
    
    The last of these must be passed around the mqtt state machine, but the
    first two are very local and the buffer is always sourced from the C
    stack.  Unfortunately, because the entire structure is persisted in the
    heap, some callers assume that they can always use the structure without
    reinitialization (see mqtt_socket_close), which will trash the C stack.
    
    Sever the pairing between message id and local state, punt the local
    state entirely out of the heap, and rename things to be less confusing.
    nwf committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    787ac7c View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2020

  1. Configuration menu
    Copy the full SHA
    f265867 View commit details
    Browse the repository at this point in the history
  2. Fix init.lua link

    marcelstoer committed Mar 15, 2020
    Configuration menu
    Copy the full SHA
    75db62f View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2020

  1. Configuration menu
    Copy the full SHA
    a9991c6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f45a9ef View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cb2636d View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2020

  1. Networking rampage and accumulated fixes (nodemcu#3060)

    * espconn: remove unused espconn code, take 1
    
    This is the easiest part of nodemcu#3004 .
    It removes a bunch of functions that were never called in our tree.
    
    * espconn: De-orbit espconn_gethostbyname
    
    Further work on nodemcu#3004
    
    While here, remove `mqtt`'s charming DNS-retry logic (which is neither
    shared with nor duplicated in other modules) and update its :connect()
    return value behavior and documentation.
    
    * espconn: remove scary global pktinfo
    
    A write-only global!  How about that.
    
    * net: remove deprecated methods
    
    All the TLS stuff moved over there a long time ago, and
    net_createUDPSocket should just do what it says on the tin.
    
    * espconn_secure: remove ESPCONN_SERVER support
    
    We can barely function as a TLS client; being a TLS server seems like a
    real stretch.  This code was never called from Lua anyway.
    
    * espconn_secure: more code removal
    
    * espconn_secure: simplify ssl options structure
    
    There is nothing "ssl_packet" about this structure.  Get rid of the
    terrifying "pbuffer" pointer.
    
    Squash two structure types together and eliminate an unused field.
    
    * espconn_secure: refactor mbedtls_msg_info_load
    
    Split out espconn_mbedtls_parse, which we can use as part of our effort
    towards addressing nodemcu#3032
    
    * espconn_secure: introduce TLS cert/key callbacks
    
    The new feature part of nodemcu#3032
    Subsequent work will remove the old mechanism.
    
    * tls: add deprecation warnings
    
    * luacheck: net.ifinfo is a thing now
    
    * tls: remove use of espconn->reverse
    
    * mqtt: stop using espconn->reverse
    
    Instead, just place the espconn structure itself at the top of the user
    data.  This enlarges the structure somewhat but removes one more layer
    of dynamic heap usage and NULL checks.
    
    While here, simplify the code a bit.
    
    * mqtt: remove redundant pointer to connect_info
    
    Everywhere we have the mqtt_state_t we also have the lmqtt_userdata.
    
    * mqtt: doc fixes
    
    * mqtt: note bug
    
    * tls: allow :on(...,nil) to unregister a callback
    nwf committed Apr 7, 2020
    Configuration menu
    Copy the full SHA
    f5aa0af View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2020

  1. add LiquidCrystal lua module (nodemcu#2974)

    seregaxvm committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    c12b2ef View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2020

  1. mispec: don't use %f

    The additional reporting, while nice, prevents the use of mispec on
    integer-only builds
    nwf committed Apr 19, 2020
    Configuration menu
    Copy the full SHA
    5552fdb View commit details
    Browse the repository at this point in the history
  2. mispec: don't use uart.write

    Prefer print everywhere.
    nwf committed Apr 19, 2020
    Configuration menu
    Copy the full SHA
    1c8dd6a View commit details
    Browse the repository at this point in the history
  3. mqtt: remove dead store

    nwf committed Apr 19, 2020
    Configuration menu
    Copy the full SHA
    fe9f2d6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0daef0a View commit details
    Browse the repository at this point in the history
  5. lua_examples/lfs/HTTP_OTA: move :connect() after :on()

    IMHO, it's generally good style to register the callbacks first.
    nwf committed Apr 19, 2020
    Configuration menu
    Copy the full SHA
    132dccd View commit details
    Browse the repository at this point in the history
  6. file: raise error on .on() with non-function/nil

    Seems more polite than quietly accepting other types as nil.
    nwf committed Apr 19, 2020
    Configuration menu
    Copy the full SHA
    c79ba4e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    810d60d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    627bd5d View commit details
    Browse the repository at this point in the history
  9. net.dns: don't calloc a single int

    Removes yet another unchecked allocation point in our C libraries.
    
    While here, fix potential reference leaks on error paths
    
    Also while here, remove some stale documentation.  There can be as many
    DNS requests in flight as LwIP has room for in its table
    (DNS_TABLE_SIZE, which defaults to 4).
    nwf committed Apr 19, 2020
    Configuration menu
    Copy the full SHA
    766ab59 View commit details
    Browse the repository at this point in the history
  10. tls: fix new verification API

    Because the old API was inactive, we were setting
    MBEDTLS_SSL_VERIFY_NONE even after we'd parsed the certificate.
    
    tls tests now include a deliberate certificate mismatch; this was
    discovered by moving the mqtt tests over to the new API.
    nwf committed Apr 19, 2020
    Configuration menu
    Copy the full SHA
    bd7695f View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    04ab7d7 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2020

  1. Correct integer types in BMP085 driver (nodemcu#3070)

    * BMP085 pressure sensor: fix temperature value data type
    
    the data type for t (U_T) should be long according to the BMP085
    datasheet (rev. 1.2, section 3.5). values over 32767 can indeed occur,
    and in my case lead to a wrong value for the temperature (and
    consequently also pressure).
    
    note: this problem only occurs above a certain temperature (exact
    value depends on the calibration, but I assume somewhere around 26°C).
    
    * BMP085 pressure sensor: adapt data types and calculation
    
    this adapts the data types and calculation to be consistent with the
    datasheet (rev. 1.2, section 3.5). while I did not notice any issues,
    using the wrong data types could trigger edge cases.
    andrmuel committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    e47c267 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2020

  1. Configuration menu
    Copy the full SHA
    3c3bec9 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2020

  1. Configuration menu
    Copy the full SHA
    e627249 View commit details
    Browse the repository at this point in the history
  2. nodemcu#2954: adapt LuaOTA to the new firmware api for the timer and …

    …some other sma… (nodemcu#3016)
    
    * nodemcu#2954: adapt to the new firmware api for the timer and some other small fixes
    
    * reduce the error msg in when not response is sent back from esp
    
    * cleanup: remove trailing whitespaces
    
    Co-authored-by: Adel Tayeb-Cherif <adel@evoluhome.com>
    adeltc and Adel Tayeb-Cherif committed Apr 26, 2020
    Configuration menu
    Copy the full SHA
    020b5a5 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2020

  1. Squashed updates do get Lua51 and Lua53 working (nodemcu#3075)

    -  Lots of minor but nasty bugfixes to get all tests to run clean
    -  core lua and test suite fixes to allow luac -F to run cleanly against test suite
    -  next tranch to get LFS working
    -  luac.cross -a options plus fixes from feedback
    -  UART fixes and lua.c merge
    -  commit of wip prior to rebaselining against current dev
    -  more tweaks
    TerryE committed Apr 27, 2020
    Configuration menu
    Copy the full SHA
    9ef5c7d View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2020

  1. fix liquidcrystal luacheck warnings (nodemcu#3081)

    Co-authored-by: Matsievskiy S.V <matsievskiysv@gmail.com>
    seregaxvm and Matsievskiy S.V committed Apr 29, 2020
    Configuration menu
    Copy the full SHA
    cd6452d View commit details
    Browse the repository at this point in the history
  2. fix build

    HHHartmann committed Apr 29, 2020
    Configuration menu
    Copy the full SHA
    976d9dd View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2020

  1. Configuration menu
    Copy the full SHA
    7523418 View commit details
    Browse the repository at this point in the history
  2. Delete espconn.h

    HHHartmann committed Apr 30, 2020
    Configuration menu
    Copy the full SHA
    17f74fb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3d2c989 View commit details
    Browse the repository at this point in the history
  4. Add missing newline

    marcelstoer committed Apr 30, 2020
    Configuration menu
    Copy the full SHA
    b6bfe1c View commit details
    Browse the repository at this point in the history
  5. Fix Windows build (nodemcu#3084)

    * fix build
    
    * poor mans link which also works on docker under windows
    
    * Delete espconn.h
    
    * resurecting it as regular file
    
    * Add missing newline
    
    Co-authored-by: Marcel Stör <marcelstoer@users.noreply.github.com>
    marcelstoer committed Apr 30, 2020
    Configuration menu
    Copy the full SHA
    314ca4f View commit details
    Browse the repository at this point in the history

Commits on May 1, 2020

  1. Configuration menu
    Copy the full SHA
    88a33af View commit details
    Browse the repository at this point in the history

Commits on May 9, 2020

  1. u8g2: Fix name of updateDisplay export (nodemcu#3093)

    Correct typo in Lua export from updateDispla() to updateDisplay()
    ecrips committed May 9, 2020
    Configuration menu
    Copy the full SHA
    89d268f View commit details
    Browse the repository at this point in the history

Commits on May 10, 2020

  1. net_info module - ping function (nodemcu#2854)

    * Net_info module exposing ping function initial commit
    * Ping as a part of net module
    * Sent callback implemented
    * Add NET_PING_ENABLE macro
    
    Authored-by: vsky <blue205@centrum.cz> with support from TerryE
    vsky279 committed May 10, 2020
    Configuration menu
    Copy the full SHA
    2f527cf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2e58471 View commit details
    Browse the repository at this point in the history
  3. Fix binary and chunked HTTP downloads (nodemcu#2985)

    Original sources by @anod221
    HHHartmann committed May 10, 2020
    Configuration menu
    Copy the full SHA
    6e5edf4 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2020

  1. Configuration menu
    Copy the full SHA
    5e2ea5a View commit details
    Browse the repository at this point in the history

Commits on May 15, 2020

  1. Update wifi..c to fix nodemcu#3106

    TerryE committed May 15, 2020
    Configuration menu
    Copy the full SHA
    50fcd72 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2020

  1. allow using both bme280 addresses simultaneously

    This adds an optional use-alternate-address-
    parameter to all read-methods of the bme280
    module. if not set, the behaviour is unchanged
    and first available device will be used.
    If set to true, the device at address 0x77 will
    be used.
    
    This fixes nodemcu#2241
    Heiko Mathes committed May 24, 2020
    Configuration menu
    Copy the full SHA
    d04946c View commit details
    Browse the repository at this point in the history