Added more event types
This commit is contained in:
parent
04c71061da
commit
337c701835
@ -65,6 +65,12 @@ def decode_encrypted(message_packet):
|
|||||||
logging.info('Received text message:')
|
logging.info('Received text message:')
|
||||||
logging.info(text)
|
logging.info(text)
|
||||||
|
|
||||||
|
elif message_packet.decoded.portnum == portnums_pb2.MAP_REPORT_APP:
|
||||||
|
pos = mesh_pb2.Position()
|
||||||
|
pos.ParseFromString(message_packet.decoded.payload)
|
||||||
|
logging.info('Received map report:')
|
||||||
|
logging.info(pos)
|
||||||
|
|
||||||
elif message_packet.decoded.portnum == portnums_pb2.NODEINFO_APP:
|
elif message_packet.decoded.portnum == portnums_pb2.NODEINFO_APP:
|
||||||
info = mesh_pb2.User()
|
info = mesh_pb2.User()
|
||||||
info.ParseFromString(message_packet.decoded.payload)
|
info.ParseFromString(message_packet.decoded.payload)
|
||||||
|
Loading…
Reference in New Issue
Block a user