ModuleConfig_DetectionSensorConfig: Message<"meshtastic.ModuleConfig.DetectionSensorConfig"> & {
    detectionTriggerType: ModuleConfig_DetectionSensorConfig_TriggerType;
    enabled: boolean;
    minimumBroadcastSecs: number;
    monitorPin: number;
    name: string;
    sendBell: boolean;
    stateBroadcastSecs: number;
    usePullup: boolean;
}

Detection Sensor Module Config

Type declaration

  • detectionTriggerType: ModuleConfig_DetectionSensorConfig_TriggerType

    The type of trigger event to be used

    from field: meshtastic.ModuleConfig.DetectionSensorConfig.TriggerType detection_trigger_type = 7;

  • enabled: boolean

    Whether the Module is enabled

    from field: bool enabled = 1;

  • minimumBroadcastSecs: number

    Interval in seconds of how often we can send a message to the mesh when a trigger event is detected

    from field: uint32 minimum_broadcast_secs = 2;

  • monitorPin: number

    GPIO pin to monitor for state changes

    from field: uint32 monitor_pin = 6;

  • name: string

    Friendly name used to format message sent to mesh Example: A name "Motion" would result in a message "Motion detected" Maximum length of 20 characters

    from field: string name = 5;

  • sendBell: boolean

    Send ASCII bell with alert message Useful for triggering ext. notification on bell

    from field: bool send_bell = 4;

  • stateBroadcastSecs: number

    Interval in seconds of how often we should send a message to the mesh with the current state regardless of trigger events When set to 0, only trigger events will be broadcasted Works as a sort of status heartbeat for peace of mind

    from field: uint32 state_broadcast_secs = 3;

  • usePullup: boolean

    Whether or not use INPUT_PULLUP mode for GPIO pin Only applicable if the board uses pull-up resistors on the pin

    from field: bool use_pullup = 8;

from message meshtastic.ModuleConfig.DetectionSensorConfig