jeelabs / esp-link

esp8266 wifi-serial bridge, outbound TCP, and arduino/AVR/LPC/NXP programmer
Other
2.82k stars 720 forks source link

Wierd Mqtt behavior #427

Open BloodWorkXGaming opened 5 years ago

BloodWorkXGaming commented 5 years ago

Hello, First of all, thanks to the esplink devs for this awesome firmware. However there is a very wird behavior in the mqtt behavior. If you are connected to the esp in AP mode and then you try to connect to a broker on a different pc on the same network, you get a socket error (mosquitto). If you are in station mode and are connected to a Hotspot hosted by laptop you can't connect to any broker either. Neither on the laptop nor a pc on the same network.

However here comes the wierd part: If you are in AP+STA mode and you are connected to the hosted esp wifi and the esp is connected to another network, it suddenly works, but only if you use 192.168.4.2, so the AP network. It even works when the laptop is connected to esp and opens a Hotspot to which the esp is connected.