martin-ger

Results 321 comments of martin-ger

The support for a loopback device should be included in the default config. See here: https://github.com/martin-ger/esp-open-lwip/blob/enc_polling/include/lwipopts.h#L1217 How to set it up (and process it) - look here: https://github.com/martin-ger/esp_wifi_repeater/blob/master/user/user_main.c for the...

Hmm, no real idea. Looks fine so far. It probably doesn't change anything if you put the 'netif_poll(netif)' in the loop() function? Does a ping on the other netifs work?

Up to now, there is no clean API to get this info from the lib. But thank you for the request. As I think about it, I understand, it would...

Try now: MqttConnectCallback now has a second parameter giving the number of currently connected clients (incl. the current request). Also the complete server software has a config param "broker_clients" defining...

It's even simpler: just return false from the callback and the lib will do the clean disconnect.

Fixed that: now all open clients are closed on STA disconnect. Also, the lib now automatically checks, whether there is enough heap left to open a new client - if...

Sorry, wrong - not the lib does this, but the broker in user_main.c. The lib still needs an API for cleanup on STA disconnection...

Now: If you want to force a cleanup when the broker as a WiFi client (WIFI_STA mode) has lost connectivity to the AP, call: `void MQTT_server_cleanupClientCons();` This will remove all...

This is too late - here the count is already done. You should call it from your program, when you are aware, that the WiFi Status has become WiFi.status() !=...

I'm note sure, whether I understand exaclty the setup. But as soon as one side reboots or looses AP connectivity, all MQTT(TCP)-connections are broken and have to be newly established...