Renames string Packet.Encode() to explicit string Packet.EncodeTnc2() to make way for upcoming AX.25 byte encoding work. AX.25 requires encode to bytes, but TNC2 can encode to string without losing data. Separating the implementations now allows their logic to evolve separately as we go forward.
Description
Renames
string Packet.Encode()
to explicitstring Packet.EncodeTnc2()
to make way for upcoming AX.25 byte encoding work. AX.25 requires encode to bytes, but TNC2 can encode to string without losing data. Separating the implementations now allows their logic to evolve separately as we go forward.This is the first PR for #145
Changes
Packet.Encode
toPacket.EncodeTnc2
Validation