Troubleshooting ESP32 Data Transfer to Broker over Cellular Network

·
·

Hello everyone, I'm currently working on a project with a friend who is building an IoT device using an ESP32. The device is designed to transfer data over a cellular network. I'm developing an app to display this data in real-time. We're having some trouble sending data from the ESP32 to our broker. I initially thought there might be an issue with my broker setup, but I was able to successfully publish and subscribe using Node.js, so the broker seems to be configured correctly. I'm using code from a forum post https://community.hivemq.com/t/connecting-esp-32-cam-with-hive-mq-cloud/2098, but I'm not utilizing a certificate in the setup. If anyone has experience successfully connecting an ESP32 to a broker over a cellular network, I would greatly appreciate your insights!

  • Avatar of Anthony Olazabal
    Anthony Olazabal
    ·
    ·

    Hello Sergii, can you share the code you are using to connect to your broker ? Also can you share details of the broker configuration like port, is Tls enabled and the kind of authentication you use ? Last request, do you have errors or logs on your ESP32 ? If you use RTOS you can enable advanced logs to see what is happening in your code.

  • Avatar of Sergii Volodarskyi
    Sergii Volodarskyi
    ·
    ·

    I think i might have not correctly setup authentification

  • Avatar of Sergii Volodarskyi
    Sergii Volodarskyi
    ·
    ·

    thank you for reply, it looks like it works now, will do more testing

  • Avatar of Sergii Volodarskyi
    Sergii Volodarskyi
    ·
    ·

    i'll let you know if still experiencing issues. thank you!