Skip to content

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.

img

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.

img

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 IDFeature TypeFeature NameData FormatRead/Write TypeUnit
1PropertyThe remaining content of essential oilFLOATRead-OnlyML
2PropertyFrequency of regular reportingINTRead-WriteSecond
3PropertyOn/Off statusBOOLRead-OnlyTrue: On;
False: Off;
4EventAlert to lack of essential oilBOOL--True: Alert;
False: Alert canceled;
5PropertymodeENUMRead-Write1: Working Mode 1;
2: Working Mode 2;
3: Working Mode 3;
6ServiceSet 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.

img

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 .

img

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.

img

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.

img