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

fix!: fix mixed case when URI_MAC=true #1399

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

unlifelike
Copy link

When URI_MAC=true, value returned from function name_uri appends the MAC suffix as uppercase to an otherwise lowercase camera name (e.g., backyard-camera-ABCD). This results in "duplicate" MQTT endpoints; one with a lowercase and one with an uppercase MAC suffix, causing MQTT commands to fail. This fixes changes the function so that the return result will be entirely lowercase.

Resolves: #1382

BREAKING CHANGE:

URI change to all lowercase for consistency with current conventions

Users whose config includes URI_MAC=true will need to update URIs

When URI_MAC=true, value returned from function name_uri appends the 
MAC suffix as uppercase to an otherwise lowercase camera name (e.g., 
backyard-camera-ABCD). This results in "duplicate" MQTT endpoints; 
one with a lowercase and one with an uppercase MAC suffix, causing 
MQTT commands to fail. This fixes changes the function so that the 
return result will be entirely lowercase.

Resolves: mrlt8#1382

BREAKING CHANGE: 

URI change to all lowercase for consistency with current conventions

Users whose config includes URI_MAC=true will need to update URIs
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.

BUG: URI_MAC attribute causing multiple MQTT endpoints
1 participant