MCPcopy Create free account

hub / github.com/AkitaEngineering/Akita-Meshtastic-Meshcore-Bridge / functions

Functions444 in github.com/AkitaEngineering/Akita-Meshtastic-Meshcore-Bridge

↓ 51 callersMethoddecode
Wraps received raw bytes into a bridge-compatible dictionary.
ammb/protocol.py:148
↓ 30 callersMethodstart
Start the API server.
ammb/api.py:158
↓ 29 callersMethodencode
Encodes outgoing data.
ammb/protocol.py:135
↓ 26 callersMethodconnect
(self)
ammb/meshcore_handler.py:174
↓ 24 callersFunction_outbound_frame
Build a companion outbound frame (radio → app): [0x3E][len_le16][payload].
tests/test_integration_no_hardware.py:67
↓ 17 callersFunction_make_bridge_config
Create a BridgeConfig wired for companion_radio protocol.
tests/test_integration_no_hardware.py:29
↓ 17 callersFunction_make_bridge_config
Helper to create a BridgeConfig with serial defaults.
tests/test_meshcore.py:603
↓ 16 callersMethodupdate_component
Update the health status of a component.
ammb/health.py:71
↓ 14 callersMethodread
Reads all currently available bytes from the buffer.
ammb/protocol.py:129
↓ 13 callersMethodvalidate_meshtastic_id
Validate a Meshtastic node ID format.
ammb/validator.py:35
↓ 12 callersMethod_send_response
Send JSON response.
ammb/api.py:135
↓ 12 callersFunctionget_metrics
Get or create the global metrics instance.
ammb/metrics.py:240
↓ 12 callersFunctionget_serial_protocol_handler
Factory function to get an instance of the appropriate **Serial** protocol handler.
ammb/protocol.py:604
↓ 10 callersMethod_emit_event
(self, message: str, level: str = "info")
ammb/tui.py:182
↓ 10 callersMethoddecode
Decode companion payload bytes into a dict. Handles RESP codes (from CMD_SYNC_NEXT_MESSAGE) and PUSH codes (unsolicited events from t
ammb/protocol.py:357
↓ 9 callersFunction_v3_channel_msg_payload
Build the raw payload for RESP_CODE_CHANNEL_MSG_RECV_V3 (code 17 / 0x11). Layout: [17][snr][reserved_2bytes][channel_idx][path_len][txt_type][t
tests/test_integration_no_hardware.py:79
↓ 9 callersFunctionget_health_monitor
Get or create the global health monitor instance.
ammb/health.py:188
↓ 9 callersMethodsubscribe
(self, event_type: EventType, handler: Callable)
ammb/meshcore_async_handler.py:58
↓ 8 callersMethodsnapshot
Return the current controller state for rendering.
ammb/tui.py:344
↓ 8 callersMethodstart
Start the bridge in a background thread.
ammb/tui.py:186
↓ 8 callersMethodvalidate_external_message
Validate a message from external system.
ammb/validator.py:96
↓ 8 callersMethodvalidate_meshtastic_message
Validate a message destined for Meshtastic.
ammb/validator.py:59
↓ 7 callersMethod_short_companion_id
(identifier: Optional[str])
ammb/meshcore_handler.py:273
↓ 7 callersFunctionload_config
Loads and validates configuration from the specified INI file.
ammb/config_handler.py:106
↓ 7 callersMethodrefresh_dashboard
(self)
ammb/tui.py:1041
↓ 7 callersMethodsanitize_string
Sanitize a string for safe transmission.
ammb/validator.py:41
↓ 6 callersFunction_section_title
(title: str)
ammb/tui.py:533
↓ 6 callersMethod_serial_sender_loop
Continuously reads from the queue, encodes, and sends messages via Serial.
ammb/meshcore_handler.py:661
↓ 6 callersMethodencode
(self, data)
ammb/meshcore_handler.py:137
↓ 6 callersFunctionmake_config
(**overrides)
tests/test_tui.py:16
↓ 6 callersMethodstop
(self)
ammb/bridge.py:190
↓ 5 callersMethod_close_serial
(self)
ammb/meshcore_handler.py:447
↓ 5 callersMethod_decode_companion_string
(raw_data: bytes)
ammb/protocol.py:244
↓ 5 callersMethod_encode_companion_from_meshtastic
Encode Meshtastic-originated messages into MeshCore companion commands.
ammb/meshcore_handler.py:756
↓ 5 callersMethod_switch_protocol
(self)
ammb/meshcore_handler.py:145
↓ 5 callersMethodget_all_stats
Get all statistics as a dictionary.
ammb/metrics.py:205
↓ 5 callersMethodget_overall_health
Get overall health status.
ammb/health.py:103
↓ 5 callersMethodrun
(self)
ammb/bridge.py:122
↓ 5 callersFunctionrun_preflight
Load config and return diagnostics without opening hardware devices.
ammb/preflight.py:149
↓ 5 callersMethodsanitize_meshtastic_message
Sanitize a message for Meshtastic.
ammb/validator.py:130
↓ 4 callersFunction_bool_label
(value: Optional[bool])
ammb/tui.py:391
↓ 4 callersFunction_log_rx_data_payload
PUSH_CODE_LOG_RX_DATA (0x88) — the frame that used to be misidentified. Payload is [0x88][variable_data]. We use 20 bytes of junk, similar
tests/test_integration_no_hardware.py:159
↓ 4 callersFunction_meta_block
(label: str, value: str)
ammb/tui.py:537
↓ 4 callersFunction_metric_card
( title: str, value: str, detail: str, *, border_style: str, )
ammb/tui.py:544
↓ 4 callersFunction_msg_waiting_payload
PUSH_CODE_MSG_WAITING (0x83) — 1-byte payload.
tests/test_integration_no_hardware.py:139
↓ 4 callersFunction_no_more_messages_payload
RESP_CODE_NO_MORE_MESSAGES (10) — 1-byte payload.
tests/test_integration_no_hardware.py:144
↓ 4 callersMethod_send_companion_command
(self, payload: bytes, label: str)
ammb/meshcore_handler.py:243
↓ 4 callersMethodadd_event
(self, message: str, level: str = "info")
ammb/tui.py:109
↓ 4 callersFunctionbuild_config_rows
Build the configuration summary shown in the side panel.
ammb/tui.py:445
↓ 4 callersMethodcheck_rate_limit
Check if a message should be allowed based on rate limits. Returns: True if message should be allowed, False if rate
ammb/rate_limiter.py:32
↓ 4 callersMethodrecord_external_disconnection
Record external system disconnection.
ammb/metrics.py:196
↓ 4 callersMethodsanitize_external_message
Sanitize a message from external system.
ammb/validator.py:168
↓ 4 callersMethodstop
Signal the bridge to stop.
ammb/tui.py:258
↓ 4 callersMethodto_dict
Convert stats to dictionary.
ammb/metrics.py:52
↓ 3 callersFunction_advert_payload
PUSH_CODE_ADVERT (0x80) — [0x80][32-byte pubkey].
tests/test_integration_no_hardware.py:149
↓ 3 callersFunction_contact_msg_payload
Build the raw payload for RESP_CODE_CONTACT_MSG_RECV (code 7). Layout: [7][pubkey_prefix_6bytes][path_len][txt_type][ts_le32][text...]
tests/test_integration_no_hardware.py:118
↓ 3 callersMethod_format_companion_event
(self, decoded_msg: Dict[str, Any])
ammb/meshcore_handler.py:278
↓ 3 callersFunction_write_config
(path: Path, body: str)
tests/test_preflight.py:10
↓ 3 callersFunctionbuild_config_summary
Build a redacted summary suitable for CLI output and support bundles.
ammb/preflight.py:90
↓ 3 callersMethodconnect
(self)
ammb/mqtt_handler.py:77
↓ 3 callersMethoddisconnect
(self)
ammb/mqtt_async_handler.py:42
↓ 3 callersMethodencode
Encodes a payload dict into an inbound frame.
ammb/protocol.py:224
↓ 3 callersFunctionformat_duration
Return a compact uptime string.
ammb/tui.py:401
↓ 3 callersFunctionformat_timestamp
Format datetimes or ISO-8601 strings for display.
ammb/tui.py:430
↓ 3 callersMethodrecord_dropped
Record a dropped message.
ammb/metrics.py:170
↓ 3 callersMethodrecord_error
Record an error.
ammb/metrics.py:177
↓ 3 callersMethodrecord_rate_limit_violation
Record a rate limit violation.
ammb/metrics.py:200
↓ 3 callersMethodreset
Reset all statistics.
ammb/metrics.py:224
↓ 3 callersFunctionsetup_logging
Configures application-wide logging.
ammb/utils.py:15
↓ 3 callersMethodstop
Stop the bridge loop.
ammb/tui.py:56
↓ 2 callersMethod__init__
(self, max_logs: int = 400, max_events: int = 16)
ammb/tui.py:100
↓ 2 callersFunction_api_label
(config: BridgeConfig)
ammb/tui.py:395
↓ 2 callersFunction_bool_value
(value: bool | None)
ammb/preflight.py:392
↓ 2 callersFunction_channel_value
(value: int | None)
ammb/preflight.py:396
↓ 2 callersMethod_decode_contact_record
( self, raw_data: bytes, *, key_name: str, payload_key: str, )
ammb/protocol.py:247
↓ 2 callersFunction_legacy_channel_msg_payload
Build the raw payload for RESP_CODE_CHANNEL_MSG_RECV (code 8). Layout: [8][channel_idx][path_len][txt_type][ts_le32][text...]
tests/test_integration_no_hardware.py:99
↓ 2 callersFunction_level_style
(level: str)
ammb/tui.py:522
↓ 2 callersFunction_new_advert_payload
PUSH_CODE_NEW_ADVERT (0x8A) — [0x8A][32-byte pubkey].
tests/test_integration_no_hardware.py:154
↓ 2 callersFunction_safe_qsize
(queue_obj: object)
ammb/tui.py:381
↓ 2 callersMethod_send_sync_next_message
Send CMD_SYNC_NEXT_MESSAGE to poll queued messages from MeshCore.
ammb/meshcore_handler.py:257
↓ 2 callersMethod_write_message
Write a message to the log file.
ammb/message_logger.py:68
↓ 2 callersFunctioncheck_missing_dependencies
Return a sorted, de-duplicated list of missing package names.
ammb/preflight.py:75
↓ 2 callersMethoddisconnect
(self)
ammb/meshcore_async_handler.py:38
↓ 2 callersFunctionformat_bytes
Return a human-friendly byte size.
ammb/tui.py:417
↓ 2 callersFunctionformat_preflight_report
Render a compact terminal report.
ammb/preflight.py:222
↓ 2 callersMethodget_current_uptime
Get current uptime in seconds.
ammb/metrics.py:105
↓ 2 callersMethodincrement_dropped
Increment dropped message counter.
ammb/metrics.py:42
↓ 2 callersMethodincrement_errors
Increment error counter.
ammb/metrics.py:47
↓ 2 callersMethodincrement_received
Increment received message counter.
ammb/metrics.py:28
↓ 2 callersMethodincrement_sent
Increment sent message counter.
ammb/metrics.py:35
↓ 2 callersFunctioninstall_command
Build the recommended pip install command.
run_bridge_tui.py:34
↓ 2 callersMethodread
Reads and returns a single outbound payload frame (without framing).
ammb/protocol.py:183
↓ 2 callersMethodrecord_connection
Record a connection event.
ammb/metrics.py:85
↓ 2 callersMethodrecord_disconnection
Record a disconnection event.
ammb/metrics.py:93
↓ 2 callersMethodrecord_external_received
Record a message received from external system.
ammb/metrics.py:162
↓ 2 callersMethodrecord_external_sent
Record a message sent to external system.
ammb/metrics.py:166
↓ 2 callersMethodrecord_meshtastic_connection
Record Meshtastic connection.
ammb/metrics.py:184
↓ 2 callersMethodrecord_meshtastic_disconnection
Record Meshtastic disconnection.
ammb/metrics.py:188
↓ 2 callersMethodregister_component
Register a component for health monitoring.
ammb/health.py:60
↓ 2 callersMethodreset
Reset the rate limiter.
ammb/rate_limiter.py:78
next →1–100 of 444, ranked by callers