- 22 Aug, 2020 2 commits
-
-
Terry Ellison authored
-
M.K 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 2 commits
-
-
Philip Gladstone authored
-
Richard Marko authored
-
- 03 Aug, 2020 1 commit
-
-
Emdioh authored
* DHT module: fix the handling of negative temps. The macro handling the conversion from the 2 bytes buffer to a double was handling negative values by checking the sign bit and taking the negative value of the number minus the sign bit. Unfortunately this does not work as the negative values are represented in 1's complement, so for instance -1 was becoming -32767 * +1 = b0000_0000_0000_ 0001 * -1 = 1111_1111_1111_1111 This replace the spacial code with a signed 16 bits value. * Refactoring: removes some code duplication. * Fixed the conversion of the 8/16 bits values Co-authored-by:
Marco Dondero <marco@dondero.eu>
-
- 07 Jul, 2020 1 commit
-
-
Lukáš Voborský authored
Co-authored-by:
vsky <blue205@centrum.cz>
-
- 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.
-
- 22 Jun, 2020 1 commit
-
-
Marcel Stör authored
-
- 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
-
- 13 Jun, 2020 1 commit
-
-
Nathaniel Wesley Filardo authored
This file seems to have been missed by 35a266e2
-
- 12 Jun, 2020 1 commit
-
-
Firenox89 authored
-
- 10 Jun, 2020 3 commits
-
-
Marcel Stör authored
-
Nathaniel Wesley Filardo authored
It has long been superseded by the rfswitch module
-
Nathaniel Wesley Filardo authored
It's not clear that this ever worked, AFAICT nobody uses it, and it's an old version of the sqlite3 engine at this point. Absent a maintainer, let's just get rid of it.
-
- 09 Jun, 2020 23 commits
-
-
Marcel Stör authored
Also update ftp server
-
Nathaniel Wesley Filardo authored
Replay a line from https://github.com/nodemcu/nodemcu-firmware/pull/2861 after accidental revert in https://github.com/nodemcu/nodemcu-firmware/pull/3075 (specifically 9ef5c7dbea86d242c030cc47e804a07f2632b0a1)
-
Gregor Hartmann authored
-
Terry Ellison authored
-
Nathaniel Wesley Filardo authored
-
Terry Ellison authored
-
Javier Peletier authored
-
Gregor Hartmann authored
Original sources by @anod221
-
galjonsfigur authored
Fixes #3089
-
Lukáš Voborský authored
* 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
-
ecrips authored
Correct typo in Lua export from updateDispla() to updateDisplay()
-
Marcel Stör authored
-
Marcel Stör authored
-
Gregor authored
-
Gregor authored
-
Gregor authored
-
Gregor authored
-
seregaxvm authored
Co-authored-by:
Matsievskiy S.V <matsievskiysv@gmail.com>
-
Terry Ellison authored
- 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
-
evoluman authored
* #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>
-
firenox89 authored
-
Gregor Hartmann authored
-
Andreas Müller authored
* 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.
-