This article describes how to use Thing Specification Language (TSL) models to achieve communication between devices and IoT Platform in multiple scenarios.
Prerequisites
- Create a product: Create a product in the IoT Platform console .
- Add a TSL feature or Batch add TSL features: Configure a TSL model for the product.
- Complete device-side development: Configure your device for TSL-based communication and connect the device to IoT Platform.
Procedure
Notice If you use a custom TSL module, each feature in the TSL data must carry the identifier
of the custom module. Format:
module identifier:feature identifier
.
For example, if you use the {tsl.functionBlockId}
custom module, you must specify TSL features by using the following formats:
- Properties:
{tsl.functionBlockId}:{tsl.properties.identifier}
. - Events:
{tsl.functionBlockId}:{tsl.event.identifier}
. - Services:
{tsl.functionBlockId}:{tsl.service.identifier}
.