Search found 4 matches

by JulianMauro
Wed Jun 04, 2025 3:30 am
Forum: ESP-IDF
Topic: Multiple netif at the same time for MQTT (WiFi & PPP)
Replies: 0
Views: 83

Multiple netif at the same time for MQTT (WiFi & PPP)

Hello,
We are using WiFi and PPP (LTE CAT-M from a SIM7080G) with the ESP_MODEM component. Since connectivity is crucial, the application must be always connected to either networks.

I've read this post and watched Cermak's video in which talked about having 2 netifs at the same time with ...
by JulianMauro
Thu Jan 09, 2025 12:10 am
Forum: ESP-IDF
Topic: Invalid characters on data received from MQTT
Replies: 5
Views: 1524

Re: Invalid characters on data received from MQTT


Yes, i saw your code, but you do this in your code which is wrong, because topic and data are not null terminated:

int topic_len = strlen(event->topic);

Thats why you have in that structure topic_len and data_len values.


Hi, thanks for the quick response, and thanks for pointing that out. I ...
by JulianMauro
Wed Jan 08, 2025 11:08 pm
Forum: ESP-IDF
Topic: Invalid characters on data received from MQTT
Replies: 5
Views: 1524

Re: Invalid characters on data received from MQTT


There is reason it works this way, and you should make use of esp_mqtt_event_handle_t structure values
https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/protocols/mqtt.html#_CPPv416esp_mqtt_event_t

You can find in there:
- char *topic
- int topic_len
- char *data
- int ...
by JulianMauro
Sun Jan 05, 2025 11:29 pm
Forum: ESP-IDF
Topic: Invalid characters on data received from MQTT
Replies: 5
Views: 1524

Invalid characters on data received from MQTT

Hi! I have configured an MQTT client (I'm using MQTT V5) on an ESP32-S3 that sends and receives data to/from multiple topics. The chip connects to the Internet via WiFi or LPWA (CAT-M 4G).

However, when receiving data from the different topics, sent from a Java client, the data is received with ...

Go to advanced search