Use these data types when you define Thing Specification Language (TSL) features for a product on IoT Platform.
| Data type | Description | Example |
| int32 | 32-bit integer. | 10 |
| float | Single-precision floating-point. | 1.1 |
| double | Double-precision floating-point. | 1.23 |
| text | String. Maximum length: 10,240 bytes. | "Hello world!" |
| date | UTC timestamp in string format. Unit: milliseconds. | "1635839462000" |
| bool | 0 (false) or 1 (true). Stored as int32. | 0: off. 1: on. |
| enum | Enumeration. Values must be integers. | 0: red, 1: blue, 2: green |
| struct | JSON object. Elements support int32, float, double, text, date, bool, and enum types. Nesting is not supported. | |
| array | Array of a single type. Supported element types: int32, float, double, text, and struct. Element count: 1 to 512. | [1, 2, 3, 4, 5, 6] |