AdminRequestRegistry

Packet ids of the admin requests this app has sent and not yet seen answered. An inbound admin response is authoritative only when its request_id consumes one of these: the firmware forwards every decoded ADMIN_APP packet addressed to the node, and from is an unauthenticated header field.

Functions

Link copied to clipboard
abstract fun clearAll()

Forgets every outstanding request. Call on radio teardown.

Link copied to clipboard
abstract fun consume(requestId: Int): Boolean

Returns true and forgets requestId when it names an outstanding request; false otherwise.

Link copied to clipboard
abstract fun register(requestId: Int)

Records the packet id of an admin request about to be sent.