add crude encoding of PSN chunks

This commit is contained in:
2024-12-19 18:28:12 -06:00
parent 03ec5a4019
commit e3bbb970be
17 changed files with 213 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
package encoders
func EncodeDataTrackerChunk(trackerId uint16, fieldChunks [][]byte) []byte {
fieldChunkBytes := []byte{}
for _, fieldChunk := range fieldChunks {
fieldChunkBytes = append(fieldChunkBytes, fieldChunk...)
}
return EncodeChunk(trackerId, fieldChunkBytes, len(fieldChunks) > 0)
}