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] Preprocessor sequence prevents plain text connections #976

Open
RichardBarry opened this issue Mar 27, 2023 · 0 comments
Open

[BUG] Preprocessor sequence prevents plain text connections #976

RichardBarry opened this issue Mar 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@RichardBarry
Copy link
Contributor

Describe the bug
I can't connect to port 1883 of test.mosquitto.org with a username and password set, but this code sequence prevents me from omitting the username.

Using the demo documented on this page: https://freertos.org/mqtt-agent/mqtt-agent-demo.html#building

Target

  • Development board: Windows simulator
  • Instruction Set Architecture:
  • IDE and version: Visual Studio
  • Toolchain and version:

Host

  • Host OS: Windows
  • Version:

To Reproduce

  • Configure the project to connect to port 1883 of test.mosquitto.org, then run the project. The connection is refused as "unauthorised".

Expected behavior
The connection to be accepted as it is plain text and unauthenticated.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
The workaround is to comment out democonfigUSE_AWS_IOT_CORE_BROKER in demo_config.h - so it isn't defined at all. Setting it to 0 is not good enough.

@RichardBarry RichardBarry added the bug Something isn't working label Mar 27, 2023
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

1 participant