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

Remove std::string as the model id and use decoder enum. #1143

Merged
merged 2 commits into from
Jan 25, 2022

Conversation

h2zero
Copy link
Collaborator

@h2zero h2zero commented Jan 21, 2022

Description:

This reduces the memory cost of std::string use and improves performance.

Checklist:

  • The pull request is done against the latest development branch
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • I accept the DCO.

@1technophile 1technophile added this to the v0.9.9 milestone Jan 22, 2022
@h2zero h2zero force-pushed the model-id-enums branch 4 times, most recently from 439385a to 82a1e2f Compare January 24, 2022 02:42
@h2zero h2zero marked this pull request as ready for review January 24, 2022 02:54
h2zero added a commit to h2zero/OpenMQTTGateway that referenced this pull request Jan 24, 2022
This allows for connecting to devices that do not use the MAC address type 0.
This also adds the logging of the "mac_type" so it is visible to users trying to connect to broadcasting devices.

Additionally this will allow for future connectable devices using a MAC address type other than 0 to be automatically connected to
when support is added for them, similar to LYWSD03MMC etc..

Uses: 1technophile#1143
h2zero added a commit to h2zero/OpenMQTTGateway that referenced this pull request Jan 24, 2022
This allows for connecting to devices that do not use the MAC address type 0.
This also adds the logging of the "mac_type" so it is visible to users trying to connect to broadcasting devices.

Additionally this will allow for future connectable devices using a MAC address type other than 0 to be automatically connected to
when support is added for them, similar to LYWSD03MMC etc..

Uses: 1technophile#1143
h2zero added a commit to h2zero/OpenMQTTGateway that referenced this pull request Jan 25, 2022
This allows for connecting to devices that do not use the MAC address type 0.
This also adds the logging of the "mac_type" so it is visible to users trying to connect to broadcasting devices.

Additionally this will allow for future connectable devices using a MAC address type other than 0 to be automatically connected to
when support is added for them, similar to LYWSD03MMC etc..

Uses: 1technophile#1143
@1technophile 1technophile merged commit e838d3c into 1technophile:development Jan 25, 2022
@h2zero h2zero deleted the model-id-enums branch January 27, 2022 02:34
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