mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Feat request neighbours (#3709)
Signed-off-by: Dane Evans <dane@goneepic.com>
This commit is contained in:
parent
3e3dfe08e6
commit
d33229c50f
14 changed files with 375 additions and 10 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue