Data Types
Flex IOT Platform Data Types
The data value types that will be allows by the platform. This will affect the Agent, Cloud, and Applications. The value is always a string but will always have a type associated with it for conversion.
Master Data
The primary key of the type table will be a number that allows services to lookup the type and use it in api calls to the platform. Any new type must be added from the end row (last row item).
Type Storage
The type and encode type of the data that is sent to cloud platform will not modify or decode the data. The user of the api to retrieve the data will be responsible for decoding the data. The cloud platform will include the encode type as part of the data api return data.
Agent Support
Agent will implement the data message with encode type.
Examples
- Boolean is ID 1
- Byte is ID 3
Note: The sensor data store will hold encoded values and will deliver the encode type to the app.
Types
Enumeration PK | Type | Range | Agent Supported | Portal Supported | Display Type | Description | Validation Rule ( what rule should be used to validate the data entry) |
---|---|---|---|---|---|---|---|
1 | Boolean | 0/1 | Number | a binary variable, having two possible values called “true” and “false.” | Valid values are 0 & 1. Agent is sending 0 & 1 successfully for Boolean Data Type (test agent VM version 1710.03.12.00) | ||
2 | Int | -2,147,483,648 to 2,147,483,647 | Number | 4 byte rational number | |||
3 | Byte | 0-255 | Number | 8 bit value | |||
4 | Decimal | 10-28 | Number | The decimal type is just another form of floating point number - but unlike float and double, the base used is 10 | |||
5 | BigInt | -2^63 (-9,223,372,036,854,775,808) to 2^63-1 (9,223,372,036,854,775,807) | Number | An 8-byte integer data type | |||
6 | String | 2,147,483,647 characters | String | A continuous list of characters | |||
7 | Float | -3.4E+38 to +3.4E+38 | Number | The float type is stored as a four-byte, single-precision, floating-point number. It represents a single-precision 32-bit IEEE 754 value. | |||
8 | Double | -1.7E+308 to +1.7E+308 | Number | The double type is stored as an eight-byte, double-precision, floating-point number. It represents a double-precision 64-bit IEEE 754 value. | |||
9 | LDouble | 3.4E-4932 to 1.1E+4932 | Number | Long double | |||
10 | Json | 2,147,483,647 characters | String | JSON is an open-standard format that uses human-readable text to transmit data objects consisting of attribute–value pairs |
Encode Type
Enumeration PK | Type | Range | Agent Supported | Portal Supported | Display Type | Description |
---|---|---|---|---|---|---|
0 | None | 0 | Empty | The type is not encoded. | ||
1 | Base64 | 1028 characters | DecodedString | Base64 is a group of similar binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation | ||
2 | XML | 1028 characters | String |