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

Modified MQTT string functions #95

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

Martinius79
Copy link
Collaborator

Replaced the "not so secure" print and copy function with the securer "n" variants of them.

Removed a for loop for coping byte-by-byte to a string buffer with strncpy and a cast to a char pointer.

Both variants (pure MQTT and MQTT with Home Assistant) need to do the same plausibility check for the incoming message (topic split to more then 2 commands), so not needed to have doubled code.

Fixed a typo in a variable name (subscibeTopic -> subscribeTopic).

Renamed variables from message2 to message.

@aly-fly aly-fly merged commit f424a47 into aly-fly:main Oct 31, 2024
2 checks passed
@Martinius79 Martinius79 deleted the ModifiedMQTTStringFunctions branch November 3, 2024 18:23
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