Help Center> IoT Device Access> FAQs> Product Models> How Do I Select a Data Type When Developing a Product Model Online?

How Do I Select a Data Type When Developing a Product Model Online?

The rules for configuring the data type are as follows:

  • int: If the reported data is an integer or Boolean value, set the data type to int. The plug-in can be of the int or array type.
  • decimal: If the reported data is a decimal, set the data type to decimal. The plug-in can be of the string, int, or array type.
  • string: If the reported data is a string, enumerated value, or Boolean value, set the data type to string. If enumerated or Boolean values are reported, use commas (,) to separate the values. The plug-in can be of the string or array type.
  • dateTime: If the reported data is a date, set the data type to dateTime. The plug-in can be of the string or array type.
  • jsonObject: If the reported data is in JSON structure, set the data type to jsonObject. The plug-in can be of the string or array type.