Appearance
Presentation
1. Device Online
1) Device Online
Download the program into a module, and the module will automatically connect to Developer Center according to the code steps. After the module is connected to Developer Center, Developer Center will automatically add the device under the product and automatically authenticate it.
2) Enable Device Debug
After the module is successfully connected to Developer Center, you can access the device console to debug the device.
On the "Product Management" page, click "View" in the corresponding Action bar to receive data. Enter the "Device Details" page and click "Device Debug" to debug TSL data online.

2. Debug Device Online
Note: Online debugging can be used to debug device features, properties and services. To ensure successful debugging, it is important to verify that the device is online and properly connected.
Draw up TSL features according to the actual project requirements of the smart aromatherapy diffuser. The default TSL model is presented in the table below.
Feature ID | Feature Type | Feature Name | Data Format | Read/Write Type | Unit |
---|---|---|---|---|---|
1 | Property | The remaining content of essential oil | FLOAT | Read-Only | ML |
2 | Property | Frequency of regular reporting | INT | Read-Write | Second |
3 | Property | On/Off status | BOOL | Read-Only | True: On; False: Off; |
4 | Event | Alert to lack of essential oil | BOOL | -- | True: Alert; False: Alert canceled; |
5 | Property | mode | ENUM | Read-Write | 1: Working Mode 1; 2: Working Mode 2; 3: Working Mode 3; |
6 | Service | Set working mode | -- | Feature ID: 5 |
1) View Data Logs
The communication logs indicate that the device reports the remaining content of essential oil to Developer Center every 30 seconds.
2) Read the Current Property Value
Click "Read Data in Batches" to read a batch of data, or click "Read" to read an individual property. Developer Center will then send the read command to the device. You can also read real-time communication logs to monitor the device's data transmissions and reports .
3) Service Calls
According to "Device Debug" > "Service Calls" defined by TSL features, you can simulate the condition of remotely issuing commands. On the "Device Debug" page, select "Set Working Mode" , set parameter to Working Mode 2 and click "Send Command", then you can see that the device has received the service issued by Developer Center.

4) Alert Event Logs
You can use the Event Logs feature to monitor alert events generated by the device. The feature allows you to view how the device automatically reports alert events to Developer Center in real time.