new protobufs

This commit is contained in:
Kevin Hester
2020-12-09 12:10:58 +08:00
parent 9e25fbc670
commit 9ff8eb1771
3 changed files with 39 additions and 31 deletions

View File

@@ -148,6 +148,7 @@ class MeshInterface:
Returns the sent packet. The id field will be populated in this packet and can be used to track future message acks/naks.
"""
if getattr(data, "SerializeToString", None):
logging.debug(f"Serializing protobuf as data: {data}")
data = data.SerializeToString()
if len(data) > mesh_pb2.Constants.DATA_PAYLOAD_LEN:

View File

File diff suppressed because one or more lines are too long

2
proto

Submodule proto updated: 1ec2369ae4...ebd18145ca