1technophile / OpenMQTTGateway

MQTT gateway for ESP8266 or ESP32 with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility & LoRa.
https://docs.openmqttgateway.com
GNU General Public License v3.0
3.6k stars 793 forks source link

ESP32 and I2C Modules #418

Closed wimb0 closed 5 years ago

wimb0 commented 5 years ago

I am trying to use a BME280 sensor with my ESP32 from Banggood , but the Wiki does not list the pins to use on an ESP32. I tried to use pins D21 for SDA, and D22 for SCL (Pinout here) but its not working. Still get "Failed to read from Weather Sensor BME280!"

Where in the code can I set the pins to use? Did anyone get this working? Does OpenMQTTGateway support I2C modules on an ESP32?

Am using the latest dev ZIP version, and BT (for my LYWSD02, which works fine).

1technophile commented 5 years ago

Hello, if you try to upload the examples given with the bme280 library, do you succeed in getting the values.

wimb0 commented 5 years ago

Hi, That is what I tried to do. I used this example: Wiki page But that does not list the ports on an ESP32.

I do not get any values

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.