decodeBeacon

fun decodeBeacon(json: Json, bytes: ByteArray): NodeWire?(source)

Decodes beacon-payload bytes back into a NodeWire, or returns null if the bytes don't parse — callers should treat null as "ignore this datagram" rather than as an error condition, since stray non-Krill UDP traffic on the multicast group is not unexpected.