Page 1 of 1

Wifi and PPPOS dual mqtt connection

Posted: Sat Apr 15, 2023 11:52 am
by fivesalive10
I would like to have two different mqtt clients, each one bound to a specific interface. They will connect to the same broker and I will be giving each client a different ID. Their connections to the broker must coexist. They will publish to the same topic, and the broker will deduplicate the message based on a counter.

So far I can make connections to my broker using wifi or the lte module.

I am struggling to get my head around the best way of doing this. There is an example doing something similar with a socket using ethernet and wifi (https://github.com/espressif/esp-idf/bl ... multiple.c)

Some googling exposes a few breadcrumbs, but I am hoping for someone to give me more explicit advice.