Event reporting
Broadcast devices use Thing Specification Language (TSL) model events to report their operational status to IoT Platform, such as task completion. After the broadcast service pushes speech content to a broadcast device, the device must report the TSL model events described in this topic.
Event list
Event name |
Function |
Required |
Report the result of the corpus push. |
Yes |
|
Reports the cell site information of the device. |
No |
View event definitions
Log on to the IoT Platform console.
In the top-left corner of the console, select the China (Shanghai) region.
On the Instance Overview tab, find your instance under All Environments and click the instance card.
In the navigation pane on the left, choose .
In the product list, find the product for your broadcast device and click View in the Actions column.
On the Product Details page, click the Function Definition tab.
Find the desired event type and click View in the Actions column. The identifier, event type, and output parameters for the feature are displayed.
Event definition details
Speech content update result
After the device downloads the pushed speech content, it must use this event to report the download result to IoT Platform. This allows IoT Platform to update the download status.
For more information about the speech content push service, see Speech content push.
Feature |
Description |
Identifier |
SpeechUpdateResponse. |
Event type |
Information. This event type indicates a general notification from a device, such as the completion of a task.
Note
|
Output parameters |
|
Cell site information
This event reports the cell site information of the device.
Feature |
Description |
Identifier |
LocationInfo. |
Event type |
Information. This event type indicates a general notification from a device. |
Output parameters |
|
Topic details
The topic for event reporting is /sys/${productkey}/${deviceName}/thing/event/${tsl.event.identifier}/post.
Where:
Replace
${productkey}and${deviceName}with the ProductKey and DeviceName of your device.${tsl.event.identifier}: The event identifier. For example, the identifier for the result of a corpus update is SpeechUpdateResponse.