|
259 | 259 | <li>Get a property value.</li>
|
260 | 260 | <li>Set a property value.</li>
|
261 | 261 | <li>Invoke an action.</li>
|
262 |
| - <li>Add a listener to an event.</li> |
263 |
| - <li>Remove a listener from an event.</li> |
| 262 | + <li> |
| 263 | + Observe events. |
| 264 | + <ul> |
| 265 | + <li>Add a listener to an event.</li> |
| 266 | + <li>Remove a listener from an event.</li> |
| 267 | + </ul> |
| 268 | + Default events are the following: |
| 269 | + <ul> |
| 270 | + <li>A property has changed.</li> |
| 271 | + <li>An action has been invoked.</li> |
| 272 | + <li>Other Things have added an event listener.</li> |
| 273 | + <li><a>Thing Description</a> has changed, i.e. properties, events or actions have been defined, removed, or the definition has changed.</li> |
| 274 | + </ul> |
| 275 | + </li> |
264 | 276 | </ul>
|
265 | 277 | </li>
|
266 | 278 | <li>Retrieve a thing that is exposed by the local runtime</li>
|
|
274 | 286 | <li>Add a property definition to the <a>Thing</a>.</li>
|
275 | 287 | <li>Add an event definition to the <a>Thing</a>.</li>
|
276 | 288 | <li>Add an action definition to the <a>Thing</a>.</li>
|
277 |
| - <li>Register an action triggered by external retrieve requests on the <a>Thing Description</a>.</li> |
278 |
| - <li>Register an action triggered on a property change.</li> |
279 | 289 | <li>Attach semantic information to an action</li>
|
280 | 290 | <li>Attach semantic information to a property</li>
|
281 | 291 | <li>Attach semantic information to an event</li>
|
282 |
| - <li>Handle an external request to retrieve the <a>Thing Description</a>.</li> |
283 |
| - <li>Handle an external request to add a listener to an event.</li> |
284 |
| - <li>Handle an external request to remove a listener to an event.</li> |
| 292 | + <li>Register a handler for external requests to retrieve the <a>Thing Description</a>.</li> |
| 293 | + <li>Register a handler for external requests to add a listener to an event.</li> |
| 294 | + <li>Handle an external request to remove an event listener.</li> |
285 | 295 | <li>Handle an external request to run an action: take the parameters from the request, execute the defined action, and return the result.</li>
|
286 | 296 | <li>Emit an event, i.e. notify all listeners subscribed to that event.</li>
|
287 | 297 | </ul>
|
|
0 commit comments