You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sending a 0-byte data actually does nothing on PacketSerial (returns directly in the send method).
However I find it quite common to send such empty data. For example, a simple protobuf struct:
messageSimpleMessage
{
boolvalue=1;
}
with its value set to false will be encoded as a 0-byte buffer by nanopb. I guess it's better to just send a PacketMarker for this kind of data.
Expected Behavior
Send a PacketMarker for 0-byte data.
Current Behavior
Does nothing on 0-byte data.
Your Environment
Version used: 1.4.0
IDE Name and version: N/A
Operating System and version (desktop or mobile): Arduino
Link to your project: N/A
The text was updated successfully, but these errors were encountered:
Sending a 0-byte data actually does nothing on PacketSerial (returns directly in the
send
method).However I find it quite common to send such empty data. For example, a simple protobuf struct:
with its
value
set tofalse
will be encoded as a 0-byte buffer by nanopb. I guess it's better to just send aPacketMarker
for this kind of data.Expected Behavior
Send a
PacketMarker
for 0-byte data.Current Behavior
Does nothing on 0-byte data.
Your Environment
The text was updated successfully, but these errors were encountered: