asNodeInfoUser

fun MeshPacket.asNodeInfoUser(): User?(source)

Decodes the payload as User if MeshPacket.decoded.portnum matches PortNum.NODEINFO_APP.

Note: PortNum.NODEINFO_APP can contain either a User or NodeInfo protobuf depending on context; use asNodeInfo to attempt the latter.