Feat request neighbours (#3709)

Signed-off-by: Dane Evans <dane@goneepic.com>
This commit is contained in:
Dane Evans 2025-12-22 07:45:06 +11:00 committed by GitHub
parent 3e3dfe08e6
commit d33229c50f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 375 additions and 10 deletions

View file

@ -126,6 +126,9 @@ interface IMeshService {
/// Send traceroute packet with wantResponse to nodeNum
void requestTraceroute(in int requestId, in int destNum);
/// Send neighbor info packet with wantResponse to nodeNum
void requestNeighborInfo(in int requestId, in int destNum);
/// Send Shutdown admin packet to nodeNum
void requestShutdown(in int requestId, in int destNum);

View file

@ -118,6 +118,18 @@ class ServiceRepository @Inject constructor() {
setTracerouteResponse(null)
}
private val _neighborInfoResponse = MutableStateFlow<String?>(null)
val neighborInfoResponse: StateFlow<String?>
get() = _neighborInfoResponse
fun setNeighborInfoResponse(value: String?) {
_neighborInfoResponse.value = value
}
fun clearNeighborInfoResponse() {
setNeighborInfoResponse(null)
}
private val _serviceAction = Channel<ServiceAction>()
val serviceAction = _serviceAction.receiveAsFlow()

View file

@ -742,6 +742,7 @@
<string name="import_known_shared_contact_text">Warning: This contact is known, importing will overwrite the previous contact information.</string>
<string name="public_key_changed">Public Key Changed</string>
<string name="import_label">Import</string>
<string name="request_neighbor_info">Request NeighborInfo (2.7.15+)</string>
<string name="request_metadata">Request Metadata</string>
<string name="actions">Actions</string>
<string name="firmware">Firmware</string>