forNode

abstract fun forNode(dest: NodeId): AdminApi(source)

Return an AdminApi instance that targets dest instead of the local device.

All calls on the returned instance route admin messages to the specified remote node over the mesh. Note: editSettings, batch, getDeviceConnectionStatus, and lifecycle commands (reboot, shutdown, factoryReset, nodeDbReset) work identically — the firmware handles admin-over-mesh transparently. The sole exception is lockdown, which is local-only (the firmware consumes its passphrase inline on the phone link); calling it on a remote-targeting instance returns AdminResult.Unauthorized.

val remoteAdmin = client.admin.forNode(NodeId(0x12345678.toInt()))
remoteAdmin.setConfig(config) // → sent to remote node

Return

a remote-targeting AdminApi instance

Since

0.2.0

Parameters

dest

the target node's NodeId