-->
Page 1 of 1

NodeCMU Lua on ESP32: No BME280 Support?

PostPosted: Mon Dec 13, 2021 11:14 am
by darethehair
I have developed my Lua apps on NodeMCU ESP8266 boards, and I had intended to eventually switch over the ESP32 boards because of better specs and functionality. However, it is now my impression that NodeMCU development (with lua) on the ESP32 is much more limited than on the ESP8266. Is this true?

The custom build web page (https://nodemcu-build.com/) has far fewer options for 'release' (ESP8266) than it does for 'dev-esp32' -- including no mention of devices like the BME280 sensor chip. Am I understanding this incorrectly?

Thanks!

Re: NodeCMU Lua on ESP32: No BME280 Support?

PostPosted: Mon Dec 13, 2021 5:19 pm
by marcelstoer
It's correct that the BME280 driver module (the C version) hasn't been ported to ESP32-land yet. That being said, in general we try to move towards having anything that is not time critical implemented in Lua rather than C for enhanced portability. For ESP8266 there is a Lua driver for the BME280 but it relies on the BME280-math module (in C) for calculations.

Re: NodeCMU Lua on ESP32: No BME280 Support?

PostPosted: Tue Dec 14, 2021 8:27 am
by darethehair
Thanks for clarifying this! So, then, if my (current) primary purpose is to interface to BME280 sensors, I will need to stick with ESP8266 boards. Any thoughts as to when, realistically, BME280 support will show up on 'dev-esp32'?