extended max allowed data length to 25
This commit is contained in:
+2
-2
@@ -85,8 +85,8 @@ typedef struct {
|
|||||||
const short divisorOrFirstBit; //!< @a bt_number: divisor (negative for reciprocal) or offset to first bit (if (@a bitCount%8)!=0)
|
const short divisorOrFirstBit; //!< @a bt_number: divisor (negative for reciprocal) or offset to first bit (if (@a bitCount%8)!=0)
|
||||||
} dataType_t;
|
} dataType_t;
|
||||||
|
|
||||||
/** the maximum position within master or slave data. */
|
/** the maximum allowed position within master or slave data. */
|
||||||
#define MAX_POS 16
|
#define MAX_POS 24
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse an unsigned int value.
|
* Parse an unsigned int value.
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ int main()
|
|||||||
{"x,,str:10", "Hallo, Du ", "10fe07000a48616c6c6f2c20447520", "00", ""},
|
{"x,,str:10", "Hallo, Du ", "10fe07000a48616c6c6f2c20447520", "00", ""},
|
||||||
{"x,,str:10", " ", "10fe07000a20202020202020202020", "00", ""},
|
{"x,,str:10", " ", "10fe07000a20202020202020202020", "00", ""},
|
||||||
{"x,,str:11", "", "10fe07000a20202020202020202020", "00", "rW"},
|
{"x,,str:11", "", "10fe07000a20202020202020202020", "00", "rW"},
|
||||||
|
{"x,,str:24", "abcdefghijklmnopqrstuvwx", "10fe0700186162636465666768696a6b6c6d6e6f707172737475767778", "00", ""},
|
||||||
{"x,,hex", "20", "10fe07000120", "00", ""},
|
{"x,,hex", "20", "10fe07000120", "00", ""},
|
||||||
{"x,,hex:10", "48 61 6c 6c 6f 2c 20 44 75 21", "10fe07000a48616c6c6f2c20447521", "00", ""},
|
{"x,,hex:10", "48 61 6c 6c 6f 2c 20 44 75 21", "10fe07000a48616c6c6f2c20447521", "00", ""},
|
||||||
{"x,,hex:11", "", "10fe07000a48616c6c6f2c20447521", "00", "rW"},
|
{"x,,hex:11", "", "10fe07000a48616c6c6f2c20447521", "00", "rW"},
|
||||||
|
|||||||
@@ -68,8 +68,8 @@ int main()
|
|||||||
{"u,ehp,hwTankTemp,Speichertemperatur IST,,25,B509,290000,,,IGN:2,,,,,,tempsensor", "","","","M"},
|
{"u,ehp,hwTankTemp,Speichertemperatur IST,,25,B509,290000,,,IGN:2,,,,,,tempsensor", "","","","M"},
|
||||||
{"", "55.50;ok","1025b50903290000","050000780300","d"},
|
{"", "55.50;ok","1025b50903290000","050000780300","d"},
|
||||||
{"r,ehp,datetime,Datum Uhrzeit,,50,B504,00,,,dcfstate,,,,time,,BTI,,,,date,,BDA,,,,temp,,temp2", "valid;08:24:51;31.12.2014;-0.875", "1050b5040100", "0a035124083112031420ff", "md" },
|
{"r,ehp,datetime,Datum Uhrzeit,,50,B504,00,,,dcfstate,,,,time,,BTI,,,,date,,BDA,,,,temp,,temp2", "valid;08:24:51;31.12.2014;-0.875", "1050b5040100", "0a035124083112031420ff", "md" },
|
||||||
{"r,ehp,bad,invalid pos,,50,B5ff,000102,,m,tempsensor;tempsensor;tempsensor;tempsensor;power;power,,,", "", "", "", "c" },
|
{"r,ehp,bad,invalid pos,,50,B5ff,000102,,m,HEX:8;tempsensor;tempsensor;tempsensor;tempsensor;power;power,,,", "", "", "", "c" },
|
||||||
{"r,ehp,bad,invalid pos,,50,B5ff,,,s,tempsensor;tempsensor;tempsensor;tempsensor;tempsensor;power;power,,,", "", "", "", "c" },
|
{"r,ehp,bad,invalid pos,,50,B5ff,,,s,HEX:8;tempsensor;tempsensor;tempsensor;tempsensor;tempsensor;power;power,,,", "", "", "", "c" },
|
||||||
};
|
};
|
||||||
DataFieldTemplates* templates = new DataFieldTemplates();
|
DataFieldTemplates* templates = new DataFieldTemplates();
|
||||||
MessageMap* messages = new MessageMap();
|
MessageMap* messages = new MessageMap();
|
||||||
|
|||||||
Reference in New Issue
Block a user