- 07 Nov, 2020 21 commits
-
-
Nathaniel Wesley Filardo authored
Reflow comments to 80 columns; fix some typos and other nits.
-
Nathaniel Wesley Filardo authored
unread contained two subtle bugs: - it created a buffer chunk at pipe[1], when that position is reserved for the pipe reader function. Because it shifted pipe[i] to pipe[i+1], including pipe[1], this was likely to manifest as the pipe later attempting to dequeue a function rather than a buffer chunk user datum. Solve this by adjusting the loop bounds and creation index. - when it created a new buffer chunk, it left that chunk's ->start and ->end fields at 0, but would then exit the loop to do the tail fill, which was in turn assuming the exit condition of the loop when an existing chunk had room, namely that data had been moved to the right and so ->start > l. Solve this by making new chunks empty but with ->start = ->end = LUAL_BUFFERSIZE. It may be slightly better to instead try to leave room at both ends if the buffer was empty prior to this unread. FIXES: https://github.com/nodemcu/nodemcu-firmware/issues/3155
-
Lukáš Voborský authored
-
Cody Cutrer authored
* add wiegand module * minor tweaks to wiegand module * fix a whitespace error (tabs!!!!) * remove an unnecessary volatile qualifier
-
Philip Gladstone authored
* It appears that the rf_pre_init is not called any more. Also cleaned up the code in wifi_common. * Log a message (at the right baud rate) if the hostname is invalid * Updated the comment in the user_config.h file
-
Philip Gladstone authored
* Don't adjust the clock until after we deal with rtctime... * Switched to using START_OPTION_CPU_FREQ_MAX instead. * Use setfield and add caching of the startup option * Put the startupcounts warning into a warning box
-
Philip Gladstone authored
-
Lukáš Voborský authored
-
Lukáš Voborský authored
-
Nathaniel Wesley Filardo authored
We marked these for deprecation in favor of the functions of the same name in encoder. Let's actually make good on that.
-
philip authored
-
philip authored
-
philip authored
-
philip authored
-
philip authored
-
philip authored
-
philip authored
-
Philip Gladstone authored
* Make captive portal detection work on macOS * Change the default SSID prefix to be NodeMCU
-
Nathaniel Wesley Filardo authored
-
Philip Gladstone authored
-
Philip Gladstone authored
-
- 08 Sep, 2020 1 commit
-
-
Gregor Hartmann authored
-
- 07 Sep, 2020 2 commits
-
-
Terry Ellison authored
Redo last change
-
Terry Ellison authored
To fix #3251.
-
- 05 Sep, 2020 1 commit
-
-
Lukáš Voborský authored
Co-authored-by:
vsky <blue205@centrum.cz>
-
- 04 Sep, 2020 2 commits
-
-
vsky authored
-
galjonsfigur authored
* SoftUART fixes: - Simplify code by using lua_L* functions and using userdata properly - Fix some edge-cases - Add more examples to documentation * Don't de-register interrupt hook if there is more RX instances * More bug fixes and registering simplification with luaL_reref and unref2 * Correct documentation of SoftUART module
-
- 01 Sep, 2020 1 commit
-
-
Philip Gladstone authored
-
- 30 Aug, 2020 1 commit
-
-
galjonsfigur authored
-
- 29 Aug, 2020 2 commits
-
-
Lukáš Voborský authored
-
Philip Gladstone authored
-
- 23 Aug, 2020 1 commit
-
-
Philip Gladstone authored
* Change struct to use integers. This is slightly more complex as we have to deal with Unsigned 32-bit integers (that aren't lua integers) * Use int64 in struct rather than double. * Fix sjson to do the right things in LUA5.3 with integers and floats
-
- 22 Aug, 2020 1 commit
-
-
Terry Ellison authored
-
- 11 Aug, 2020 1 commit
-
-
Caleb Mingle authored
I've not been able to get the mqtt `connfail` callback to work. I'm consistently receiving `method not supported` errors: ``` application.lua:53: method not supported stack traceback: [C]: in function 'on' application.lua:53: in main chunk [C]: in function 'dofile' init.lua:18: in function <init.lua:6> ``` Example code: ``` function on_connection_failed(client, reason) print("mqtt connection failed: " .. reason) end m:on("connfail", on_connection_failed) ``` I believed this to be caused by the incorrect length comparison for `connfail` that is updated here. Once I changed that, the error went away, however the callback was never called. I believe the callback was never called because of an incorrect assignment. However, I saw this somewhat confusing description in the docs so this assignment may be expected? > The second (failure) callback aliases with the "connfail" callback available through :on(). (The "offline" callback is only called after an already established connection becomes closed. If the connect() call fails to establish a connection, the callback passed to :connect() is called and nothing else.)
-
- 08 Aug, 2020 1 commit
-
-
Philip Gladstone authored
-
- 30 Jun, 2020 1 commit
-
-
Datong Sun authored
connecting to server. Inside af426d03, the `mqtt_socket_timer` function was modified so that instead of checking the presense of allocated `mud->pesp_conn` structure, `mud->connected` field was used on determining if the timer need to be disarmed. However, this is not entirely correct. If the TCP socket is actively connecting and haven't timed out yet, then `mud->connected` is also `false` and the timer will think the connection is broken and disarms itself. This has two consequences: * The connection timeout counter is no longer decremented and checked * After connection succeeds, keepalive heartbeat is no longer being sent (#3166). This is particularly noticeable in MQTT over TLS connections, because those usually takes longer than 1 second to finish and the timer would had chance to execute before connection is established This commit checks the presense of `pesp_conn->proto.tcp` pointer instead, which was allocated in the same place as the (old) `pesp_conn` struct, and according to my test indeed fixes the above issue.
-
- 20 Jun, 2020 1 commit
-
-
Nathaniel Wesley Filardo authored
Otherwise we might truncate precision with small floats and that's unlikely to work out well for anyone.
-
- 17 Jun, 2020 1 commit
-
-
vsky authored
-
- 16 Jun, 2020 1 commit
-
-
Terry Ellison authored
-
- 12 Jun, 2020 1 commit
-
-
Firenox89 authored
-