Commit Graph

17 Commits

Author SHA1 Message Date
serg3295 096164a75c fix(mqtt): adds parameter checking to nil 2024-01-30 11:34:03 +11:00
serg3295 9a9548b0b8 fix(mqtt): select next parameter in connect() 2024-01-30 11:34:03 +11:00
serg3295 9633b03af3 fix: mqtt module 2024-01-30 11:34:03 +11:00
Johny Mattsson f126b6fe91 Initial migration to IDFv5.0
Plenty of dependency adjustments, printf format specificier updates,
FreeRTOS type and macro name modernisation, not to mention API changes.

Still plenty of legacy/deprecated drivers in use which will need updating.

The following features have been removed due to no longer being available
from the IDF:
  - ADC hall effect sensor reading
  - Configuration of SD SPI host via sdmmc module (now must be done first
    via the spimaster module)
  - FAT partition selection on external SD cards; only the first FAT
    partition is supported by the IDF now

On the other hand, the eth module now supports the following new chipsets:
  - KSZ8001
  - KSZ8021
  - KSZ8031
  - KSZ8051
  - KSZ8061
  - KSZ8091
  - Possibly additional models in the LAN87xx series (the IDF docs aren't
    clear on precisely which models are handled)

Further, the sdmmc module is now available on the ESP32-S3 as well.
2024-01-30 11:34:03 +11:00
Johny Mattsson ea968de6f8 Fixup LROT_MASKs for all modules.
Search-and-replace considered harmful. I completely missed the need to
explicitly declare "fast" tag functions (__xyz) in the mask field to
LROT_BEGIN()/LROT_END() when I brought over the 5.1+5.3 support.
Without those flags set properly, the LVM doesn't even bother going
looking for those methods, which in this case led to garbage collection
not calling the __gc functions, among other horrible things.

Mea culpa.
2021-09-16 17:53:35 +10:00
Johny Mattsson dc27e9f7cf Updated modules to comply with __ ordering in rom tables. 2021-08-24 09:56:20 +10:00
Johny Mattsson 93140a89a5 Swap to luaL_pcallx for C module callbacks.
Bring on that stacktracey goodness!
2021-08-24 00:11:31 +10:00
Johny Mattsson 17df207a5f Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch.
Changes have been kept to a minimum, but a serious chunk of work was
needed to move from 8266isms to IDFisms.

Some things got refactored into components/lua/common, in particular
the LFS location awareness.

As part of this work I also evicted our partition table manipulation
code, as with the current IDF it kept breaking checksums and rendering
things unbootable, which is the opposite of helpful (which was the
original intent behind it).

The uart module got relocated from base_nodemcu to the modules component
properly, after I worked out how to force its inclusion using Kconfig alone.
2021-08-22 02:03:05 +10:00
Johny Mattsson eaac369dec
LFS support for ESP32 NodeMCU (#2801)
* Port LFS from ESP8266 to ESP32
2019-07-22 19:13:43 +10:00
Arnim Läuger 2339726097
mqtt: add ceritificate handling to support server verification and mutual authentication (#2657)
* mqtt: add ceritificate handling to support server verification and mutual authentication

* remove superfluous include
2019-02-12 23:10:25 +01:00
Javier Peletier 2b006e2f9a mqtt: allow daisy-chaining subscriptions (#2638) 2019-01-31 21:08:31 +01:00
Javier Peletier 56f19e44c3 ESP32: MQTT module rewrite (#2629)
* mqtt: first pass

* mqtt: correct gc during callback bug

* mqtt: document and cleanup

* mqtt: separate lnodeaux due to copyright

* mqtt: rename lnodeaux methods

* mqtt: update docs

* mqtt: fix copyright in lnodeaux.c

* mqtt: refactor and cleanup

* mqtt: use ESP logging
2019-01-29 22:36:29 +01:00
Kevin Leung e38fc7ac66 Compilation fix (#2623) 2019-01-22 18:56:54 +01:00
Ryan Hartlage d6c593b722 Use esp-mqtt from esp-idf (#2509)
* Use esp-mqtt from esp-idf

* Fix formatting

* Revert changes to u8g2 submodule
2018-10-08 20:58:28 +02:00
Ryan Hartlage 74fd5184dd Use RO metatable for MQTT module; add link to docs in mkdocs.yml 2018-07-14 13:40:21 -04:00
Andrew Gough 33232b501d Upgrade to espmqttc head 2018-03-19 19:31:38 +11:00
Andrew Gough 4207d6c8ad Add espmqtt library + bindings 2018-02-01 21:03:10 +11:00