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

Improvement: mqtt library replacement #768

Merged

Conversation

No-Signal
Copy link
Collaborator

Replacement of the unsupported MQTT library from Issue #761 using the ESP-MQTT library

This PR requires further testing & investigation into flash size before it can be considered ready

The initial MQTT connection always fails as the Wifi connection is not yet ready, need to implement a way to wait for Wifi to connect before starting the MQTT connection

@No-Signal No-Signal force-pushed the feature/mqtt_library_replacement branch 2 times, most recently from 1f780e3 to 80f84f5 Compare January 9, 2025 21:11
@No-Signal No-Signal force-pushed the feature/mqtt_library_replacement branch from 80f84f5 to aa7d34a Compare January 14, 2025 21:10
@No-Signal
Copy link
Collaborator Author

This version has fixes for #785 #761 #743 and adds some of the features listed in #239

@No-Signal No-Signal marked this pull request as ready for review January 15, 2025 08:32
NOTE: In some cases, the LilyGo must be powered through the main power connector instead of USB-C
when performing the initial firmware upload.
NOTE: On Mac, the following USB driver may need to be installed: https://github.com/WCHSoftGroup/ch34xser_macos

NOTE: If you see garbled messages on the serial console, change the serial console to match the baud rate to the code, currently 115200.

NOTE: If you see the error `Sketch too big` then check you set the Partition Scheme above correctly.

This video explains all the above mentioned steps:
<https://youtu.be/_mH2AjnAjDk>

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Could your remove the mention of lib dependency, essentially remove this row from README.md

Copy link
Owner

@dalathegreat dalathegreat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am approving this one to make it easier to merge later on, good luck with the LWT and QoS 1! 🙌

@dalathegreat
Copy link
Owner

dalathegreat commented Jan 18, 2025

@No-Signal , can you update the comment on username/password in USER_SECRETS as described in issue #738 ?

EDIT: No need, I fixed this in #802

@No-Signal
Copy link
Collaborator Author

@No-Signal , can you update the comment on username/password in USER_SECRETS as described in issue #738 ?

EDIT: No need, I fixed this in #802

I have updated the template again as the new library allows setting a blank string for no authentication which should be easier for people to update

@No-Signal No-Signal merged commit 36bb44b into dalathegreat:main Jan 19, 2025
112 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants