Data Types
OGP supports a number of parameter data types the supported types summarized in the table below. For OGP messaging, the OGP Type value is a numerical index to indicate the parameter’s data type. For JSON messaging, the Data Type Name is used to indicate the parameter type.
Data Type Name |
OGP type |
Data Size (bytes) |
Description |
INT16 |
2 |
2 |
16-bit signed integer (INT16) |
INT32 |
4 |
4 |
32-bit signed integer (INT32) |
FLOAT |
6 |
4 |
32-bit IEEE single-precision floating point number |
STRING |
7 |
variable |
null-terminated UTF-8 string data_size = maximum permitted number of character data bytes |
INT16_ARRAY |
12 |
2 * len |
array of 16-bit integers data_size = 2 * number of elements (total length of the array in bytes) |
INT32_ARRAY |
14 |
4 * len |
array of 32-bit integers data_size = 4 * number of elements (total length of the array in bytes) |
FLOAT_ARRAY |
16 |
4 * len |
array of 32-bit floats data_size = 4 * number of elements (total length of the array in bytes) |
STRING_ARRAY |
17 |
variable |
null-terminated UTF-8 strings precision = maximum string length for any element in the array data_size = maximum number of character data bytes |
STRUCT |
n/a |
variable |
User-defined data structure. (Dashboard 7.0+) |
STRUCT_ARRAY |
n/a |
variable |
Array of User-defined data structures. (DashBoard 7.0+) |
BINARY_PARAM |
18 |
variable |
array of binary data of type unknown to DashBoard. |