Arduino Mega + W5500 + BME280 = Connection refused all the time
-
@NeoX Maybe not relevant, but that doesn't appear to be the Adafruit BME280, as you're including <bme280_mod-1022.h>. This headerfile appears to be part of this library: https://github.com/embeddedadventures/BME280 which is very different from the Adafruit implementation.
If that library blocks too long in one of its calls it might cause troubles. -
@Yveaux Hmm, interesting, since only one library i do find in Arduino IDE library manager as installed was this Adafruit.
But's should be fine@NeoX said in Arduino Mega + W5500 + BME280 = Connection refused all the time:
only one library i do find in Arduino IDE library manager
I started using PlatformIO recently, and I much prefer their way of searching libraries. When you do
pio runit will even take thelibrary.hfile name that you are missing and give you a link to look it up in their library search. You can also search there for library name, or file names. Very handy!Anyway, a bit offtopic for this thread, so recently I started another one where we can discuss PlatformIO (if you are interested).
@NeoX said in Arduino Mega + W5500 + BME280 = Connection refused all the time:
i switched to MQTT and it works fine, and i think MQTT client is more important for me
I rebuilt my gateway recently (few weeks ago) and this time I decided to go MQTT way. I actually have MQTT broker running on separate machine from my HA controller. Sort of distributed architecture, if you will. So far I am really liking this approach. Soon I will add some additional monitoring and metrics based directly off the MQTT, these will also be totally independent of the controller.