Forum > Embedded
ESP32 mqtt demo
ccrause:
Inspired by Thaddy's remote lock idea, I cobbled together a quick and dirty mqtt client (source) for ESP32. This video demonstrates the ESP32 in action. I have also added the mqtt device to my OpenHAB setup.
dbannon:
OK, that looks very interesting ccrause. Maybe I abandon my Raspberry Picos. I have ordered a couple of ESP32-C3 !
I take it that https://wiki.freepascal.org/Xtensa is the recipe for setting up a build environment for your extensive example collection ?
Thanks very much !
Davo
ccrause:
--- Quote from: dbannon on May 14, 2024, 08:41:01 am ---OK, that looks very interesting ccrause. Maybe I abandon my Raspberry Picos. I have ordered a couple of ESP32-C3 !
I take it that https://wiki.freepascal.org/Xtensa is the recipe for setting up a build environment for your extensive example collection ?
--- End quote ---
Thank you. Yes I used the wiki as basis for a recipe to build the esp-idf SDK and collect all the required libraries and tools. There is also Michael Ring's script to automate the build process and packaging the resulting files and tools ready for distribution via fpcupdeluxe. Only tested for ESP32 and ESP8266, so you may have to tweak things to work for the RISC-V MCU.
PascalDragon:
--- Quote from: dbannon on May 14, 2024, 08:41:01 am ---I have ordered a couple of ESP32-C3 !
--- End quote ---
Please note that the ESP32-C3 is a RISC-V based device, not Xtensa based. While FPC supports RISC-V I don't know right know whether the environment of the ESP32-C3 is supported for the RISC-V as well (maybe also FreeRTOS like on the ESP32?)
dbannon:
OK, thats even more interesting !
I missed the distinction between esp32 and esp32-c3, looking through espressif's documentation, its clear enough now ! Quite different processors. Sigh...
They have not arrived yet (week or so) so cannot do any testing. From what I have seen the ESP32 is past its use by date. Local retailers are stocking only the -c3. I'll report what I find ....
Michael Ring's approach is still an option but Raspberry Pi have made it's c libraries very difficult with its very convoluted use of cmake. It was avoiding that problem, particularly wrt wifi that attracted me.
We'll see ....
Davo
Navigation
[0] Message Index
[#] Next page