Commit graph

24 commits

Author SHA1 Message Date
James Rich
34b0755192 refactor: Centralize Meshtastic intent constants
This commit centralizes all Android Intent constants into a new `MeshtasticIntent` object within the `core/api` module.

This refactoring makes the constants accessible to external applications and removes the duplicated definitions from the main application. The app and the service example have been updated to use these new centralized constants.

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
2026-02-07 15:45:11 -06:00
James Rich
8c46a0c946 feat: Add disconnect broadcast and improve app port handling
This commit introduces several enhancements to the service broadcasts and data handling:

-   **Disconnect Broadcast**: Adds and triggers a new `ACTION_MESH_DISCONNECTED` broadcast when the mesh connection state changes to `Disconnected`. This provides a more specific intent for apps to listen for disconnection events.

-   **Expanded App Port Handling**:
    -   Adds explicit broadcast actions for various app port numbers (e.g., `ATAK_PLUGIN`, `PRIVATE_APP`, `DETECTION_SENSOR_APP`).
    -   Ensures that packets for `ATAK`, `PRIVATE_APP`, and `DETECTION_SENSOR_APP` are now correctly broadcast to external applications.
    -   Implements a default behavior to broadcast any unrecognized port numbers, allowing for future extensibility and support for third-party apps.

-   **Backward Compatibility**: When broadcasting received data, a secondary broadcast with the numeric port number is also sent to maintain compatibility with older applications that may rely on it.

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
2026-02-07 15:10:00 -06:00
James Rich
fad26f1273
feat: Improve connection state broadcast and timing (#4498)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
2026-02-07 18:52:35 +00:00
James Rich
6950c8f01b
Fix: Use dynamic year for copyright headers (#4116) 2026-01-02 14:06:05 -06:00
James Rich
b3ebe760dd
feat: Refactor MeshService into smaller, single-responsibility components (#4108)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
2026-01-02 17:13:38 +00:00
James Rich
0776e029f3
feat(logging): Replace Timber with Kermit for multiplatform logging (#4083)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
2025-12-28 14:30:15 +00:00
James Rich
73d933fe14
feat(connections): Connecting state refactor (#3722)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
2025-11-17 21:15:22 +00:00
James Rich
6590ea0ef0
feat(ble): Add support for LogRadio characteristic, enhance logs (#3691)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
2025-11-13 19:53:37 +00:00
James Rich
cad88d277b
refactor(analytics)!: modularize analytics - remove Logging (#3256)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
2025-09-30 23:22:22 +00:00
Phil Oliver
db2ef75e08
Add :core:service (#3253) 2025-09-30 20:55:56 +00:00
Phil Oliver
0cf7b93f28
Less state held by MeshService (#3205) 2025-09-25 21:22:14 +00:00
Phil Oliver
4eba3e9daf
Modularize more models/utils (#3182) 2025-09-24 15:43:46 +00:00
James Rich
4a7e3e35e0
feat(service)!: refactor configuration, nodedb, and connection states (#2661)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
2025-08-08 21:59:54 +00:00
andrekir
13b615a470 chore: update license header 2025-01-02 07:00:51 -03:00
andrekir
1219d3037e chore: add GPL-3.0 license headers to source files 2024-11-26 08:54:18 -03:00
andrekir
ed649470f9 refactor: remove deprecated RECEIVED_DATA broadcast 2024-01-10 12:24:18 -03:00
andrekir
b4e8852961 fix: always broadcast MessageStatus updates 2023-01-22 21:45:45 -03:00
andrekir
a1984c5136 revert broadcastMessageStatus 2022-11-29 17:45:04 -03:00
andrekir
65e982ddd5 refactor messages to Room database 2022-09-15 22:24:04 -03:00
Kevin Hester
1eb4bf43d4 fix leakage of (slightly) possibly PII data 2021-05-10 08:37:39 +08:00
Kevin Hester
5b653d29f8 reformat per coding conventions 2021-03-29 20:33:06 +08:00
Kevin Hester
dbc91e4ac5 remove deprecations 2021-03-03 08:14:40 +08:00
Kevin Hester
1d41a48274 Conditionalize message receive broadcast, so apps can subscribe to JUST their messages 2021-01-11 17:18:04 +08:00
Ken Van Hoeylandt
3610f0b53e refactored MeshService
- moved MeshService start-related code to `MeshServiceStarter`
- moved `LocationCallback` to `MeshServiceLocationCallback`
  - coroutine scope is now handled in `MeshService` positio ncallback.
  - refactored `onLocationResult()` to be easier to read
- created `MeshServiceNotifications` for creating and updating of notifications
- moved `SavedSettings` to `MeshServiceSettingsData`
2020-10-01 22:20:19 +02:00