Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: WiFi MQTT Not Working After Enabling Bluetooth MQTT Proxy on Phone #4065

Closed
Oliver0804 opened this issue Jun 10, 2024 · 7 comments
Closed
Labels
bug Something isn't working

Comments

@Oliver0804
Copy link

Category

BLE, WiFi

Hardware

T-Beam

Firmware Version

2.3.10

Description

After enabling the Bluetooth MQTT proxy on the phone, switching to WiFi mode causes the WiFi MQTT to stop working.

Relevant log output

No response

@Oliver0804 Oliver0804 added the bug Something isn't working label Jun 10, 2024
@spqr1234
Copy link

I have noticed MQTT does not work at all on the Primary Channel 0 from a WiFi node on my Heltec v3 devices. I am unable to send or receive messages on the Primary channel when using MQTT via the WiFi interface. It also does not work sending Direct messages either, although does receive Direct messages. It works on Secondary channels and when using the Bluetooth direct connection with MQTT Proxy. It seems to me MQTT functionality in the WiFi environment is not correctly implemented

@garthvh
Copy link
Member

garthvh commented Jun 11, 2024

You can use a he proxy or WiFi, not both

@garthvh garthvh closed this as completed Jun 11, 2024
@spqr1234
Copy link

Selecting or deselected Proxy whilst in WiFi mode makes no difference to me. The node is still unable to send/receive MQTT messages on the Primary Channel 0. Having Proxy selected/deselected in WiFi mode has no affect on sending/receiving MQTT messages through Secondary channels, these continue to work.

@Oliver0804
Copy link
Author

You can use a he proxy or WiFi, not both

Hi garthvh, I'm not sure if I'm expressing this correctly.

I've noticed that when the Bluetooth proxy function is enabled, switching to WIFI mode generally allows MQTT to work over WIFI. However, I found that it's unable to connect. I think this might be a firmware issue.

@garthvh
Copy link
Member

garthvh commented Jun 12, 2024

The proxy uses internet from the phone and can't be used with wifi

@Oliver0804
Copy link
Author

The proxy uses internet from the phone and can't be used with wifi

Thank you for your reply.😘

I understand that on an ESP32-based device, Wi-Fi and Bluetooth cannot be used simultaneously. However, my issue is that if the device is in proxy mode (using Bluetooth), and then I configure the device to use Wi-Fi, it causes the ESP32 to not connect to the MQTT server via Wi-Fi, possibly continuously waiting for the Bluetooth proxy.

I suspect this might be a bug in the firmware.

Once I confirm how the issue occurs, I will report it to the firmware team.

@spqr1234
Copy link

Oliver0804.. your observation looks very similar to my own. I created a thread that's been picked up by the developers. I noticed MQTT does not work via the web GUI when connected via Wifi on Channel 0.. but other Channels worked, and switching to the app and connecting via bluetooth with the proxy enabled overcomes the problem. You can see my observations here:
https://github.com/meshtastic/firmware/issues/4076#issuecomment-2161446851

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants