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

Adapt the size of MQTT tempTopic to the size of config variable #718

Merged
merged 1 commit into from
Jan 26, 2025

Conversation

uschindler
Copy link
Contributor

Hi @fredlcore,

this is just something I found out while reviewing the code yesterday in PR #717: It adapts the buffersize for creating the topic (for listening on) in the same way like I have done yesterday for the hostname. As before, the sizeof is evaluated by the compiler, so compiled code is identical.

It is up to you to merge this although it fixes no real bug, but it makes the code more safe when modifying config file to larger topic buffer size and it is easier to read.

Uwe

@fredlcore fredlcore merged commit 52a8b36 into fredlcore:master Jan 26, 2025
2 checks passed
@fredlcore
Copy link
Owner

Good call, thanks!

@uschindler uschindler deleted the dev/size_of_temp_topic branch January 26, 2025 09:43
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