-
Notifications
You must be signed in to change notification settings - Fork 7.5k
mqtt_publisher sample not working with BLE IPSP and has outdated net setup/prj configs #11741
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
Comments
CC @rlubos |
The various prj*.conf files look quite out-dated and probably need to be cleaned up a bit. The new standard is to design a nice generic prj.conf file which gets used by default and then overlay-*.conf for various specialized cases. |
@ntavish: Thanks for submitting this ticket, was looking to create one myself ;-). So, @rlubos, the problem here is that this sample should not have stuff like Also from @mike-scott on IRC:
|
The fact is BLE stuff in the sample might be outdated, I did not touch it at all during the MQTT update. Will look into this. |
It is outdated, as mentioned, stuff like that was replaced long ago by net_app_config which was replaced by net_config. It seems to have some display hacks, like rotating progress indicator waiting for BLE conn, so will be hard to remove ;-). |
Take a look at this #11765, it doesn't handle connecting properly is BT is not connected, but it does connect if you are fast enough in connecting after boot. |
Closing as this got fixed by #11765. |
Describe the bug
MQTT publisher sample is stuck trying to connect over TCP.
Following is after making a change to fix a bug(?) which enables bt twice and quits after
EALREADY
is returned:To Reproduce
Steps to reproduce the behavior:
Output:
(before earlier fix, it would simply exit
network_setup()
and not attempt to connect)Expected behavior
Application should attempt to connect to MQTT server. I do not see any connection attempts. Through the shell, I can actually connect to mosquitto:
Impact
Unable to test a very common use case for BLE/6lowpan, and also things to test after this like TLS support for MQTT.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: