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

[modules][external notifications] allow select channel to listen to #1882

Merged
merged 3 commits into from
Nov 3, 2022

Conversation

lesykm
Copy link
Contributor

@lesykm lesykm commented Oct 31, 2022

Fixes: #1881

By default external notifications channel is bound to GPIO while canned messages (including bells) are sent to non-gpio channels essentially making inter-operation between these modules unusable.
Adding this new parameter (with default to old value, so no behavior change) will add ability to change bound channel so listen for bell character/any message on any other channel of choice.

meshtastic/protobufs#229 is prerequisite for this.

@@ -157,15 +158,15 @@ extern "C" {
#define ModuleConfig_init_default {0, {ModuleConfig_MQTTConfig_init_default}}
#define ModuleConfig_MQTTConfig_init_default {0, "", "", "", 0, 0}
#define ModuleConfig_SerialConfig_init_default {0, 0, 0, 0, _ModuleConfig_SerialConfig_Serial_Baud_MIN, 0, _ModuleConfig_SerialConfig_Serial_Mode_MIN}
#define ModuleConfig_ExternalNotificationConfig_init_default {0, 0, 0, 0, 0, 0}
#define ModuleConfig_ExternalNotificationConfig_init_default {0, 0, 0, 0, 0, 0, "gpio"}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is where old default value is set according to "proto 3" syntax.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 31, 2022

🤖 Pull request artifacts

file commit
pr1882-firmware-2.0.0.f5945d4.zip f5945d4

thebentern added a commit to meshtastic/artifacts that referenced this pull request Oct 31, 2022
thebentern added a commit to meshtastic/artifacts that referenced this pull request Nov 2, 2022
thebentern added a commit to meshtastic/artifacts that referenced this pull request Nov 2, 2022
@lesykm lesykm force-pushed the ext_notification_channel branch from 35f7077 to 25a3a09 Compare November 3, 2022 03:31
@lesykm
Copy link
Contributor Author

lesykm commented Nov 3, 2022

Updated to what @caveman99 suggested - listen on gpio channel only if alert_message is defined otherwise listen on all channels. No config changes.

thebentern added a commit to meshtastic/artifacts that referenced this pull request Nov 3, 2022
thebentern added a commit to meshtastic/artifacts that referenced this pull request Nov 3, 2022
@caveman99 caveman99 merged commit a3f1c02 into meshtastic:master Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants