I have the folowing case:
An ESP32 programed in Arduino, which has no internet connection (Wifi has not been setup). At it first stage, the ESP32 has an open Access Point (You must activate this function by pressing X number of times a button). Then a phone can connect to this device.
Here comes the wierd part. I have not managed to have the ESP32 to work as an MQTT broker and at the same time as an MQTT Client (The phone has to be also a client). In that way, Phone and ESP32 can share data, in order to configure the network.
I pretty sure that is way to complicated to have the broker on the phone, so I think an alternative is that the broker is in the access point (ESP32). Has anyone done something like this or have an alternative method in order to configure the device through the access point, without mounting a web server on the phone. There is also another issue. As we have a single network on Wifi, if you do a WiFi Scan to search for the networks, which if you do on the ESP32, yo can know for sure, that those are the SSID that are visible to him, when yo do a WifiScan, the access points gets disconnected, as the scan need to free the channels in order to scan, so the phone looses his connection as a station as it receives no beacon from the Access Point (ESP32).
I´m sure there are some ways, as Tuya Smart app can register devices on that way.
Thanks
FBP
An ESP32 programed in Arduino, which has no internet connection (Wifi has not been setup). At it first stage, the ESP32 has an open Access Point (You must activate this function by pressing X number of times a button). Then a phone can connect to this device.
Here comes the wierd part. I have not managed to have the ESP32 to work as an MQTT broker and at the same time as an MQTT Client (The phone has to be also a client). In that way, Phone and ESP32 can share data, in order to configure the network.
I pretty sure that is way to complicated to have the broker on the phone, so I think an alternative is that the broker is in the access point (ESP32). Has anyone done something like this or have an alternative method in order to configure the device through the access point, without mounting a web server on the phone. There is also another issue. As we have a single network on Wifi, if you do a WiFi Scan to search for the networks, which if you do on the ESP32, yo can know for sure, that those are the SSID that are visible to him, when yo do a WifiScan, the access points gets disconnected, as the scan need to free the channels in order to scan, so the phone looses his connection as a station as it receives no beacon from the Access Point (ESP32).
I´m sure there are some ways, as Tuya Smart app can register devices on that way.
Thanks
FBP