MQTT connect stops I2C data collection


I am using Arduino Nano 33 IoT with ArduinoMqttClient library and MAX30102 sensor for data collection over I2C. As soon as I call mqttClient.connect() the sensor stops reading the data over I2C. As soon as I do not connect with mqttClient I am able to get the data from the sensor.

What does the connect attempt return? Where is the MQTT server you're trying to connect to?

The connection runs fine, publishing and subscribing too, the data is flowing. The server is on AWS. But how does that influence the problem?

That's odd. Time to post your code and schematic.

What I found out so far is that ECC may be the culprit (hogging the bus) so I am trying creating additional I2C bus and seeing if it solves the issue.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.