Added the Atomic Read File Ack encoding and decoding and unit tests. Corrected the Atomic Read File encoding and decoding.

This commit is contained in:
skarg
2005-06-05 00:35:10 +00:00
parent d2814fa900
commit 7dec29d213
2 changed files with 279 additions and 36 deletions
+5 -4
View File
@@ -53,14 +53,15 @@ typedef struct BACnet_Atomic_Read_File_Data
struct
{
int fileStartRecord;
unsigned requestedRecordCount;
// requested or returned record count
unsigned RecordCount;
} record;
} type;
// note: set the file data to an empty buffer
// and set the DataLength to the size of the empty buffer
// before decoding the data.
// These are used for the ACK portion
// Set them to an unused buffer for the decode to fill
uint8_t *fileData;
unsigned fileDataLength;
bool endOfFile;
} BACNET_ATOMIC_READ_FILE_DATA;
// encode service