Skip to content

Commit 83ca01d

Browse files
authored
Update README.md
1 parent 65999cf commit 83ca01d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ Example:
333333

334334
## Thing Description Discovery
335335

336-
W3C Web of Things (WoT) offers a mechanism that things can propagate metadata using protocols like mDNS for local discovery and/or can register themselves on centralized directories for broader access. [W3C Web of Things (WoT) Discovery](https://www.w3.org/TR/wot-discovery/#architecture) describes how things can register themselves in a central directory, known as a Thing Description Directory (TDD), through a process that involves several steps:
336+
W3C Web of Things (WoT) offers a mechanism that things can propagate metadata using protocols like mDNS for local discovery and/or can register themselves on centralized directories for broader access. [W3C Web of Things (WoT) Discovery](https://www.w3.org/TR/wot-discovery/#architecture) describes how things can register themselves in a central directory, known as a Thing Description Directory (TDD).
337337

338338
For more details, refer to the official [W3C Web of Things](https://www.w3.org/WoT/) website.
339339

@@ -371,11 +371,13 @@ If you don't like annotations and prefer to build Thing Descriptions in code, yo
371371
}
372372
event<String, Nothing, Nothing>("statusUpdated") { data = StringSchema() }
373373
}.apply {
374-
setPropertyReadHandler(propertyName1) { 10.toInteractionInputValue() }
375-
setPropertyReadHandler(propertyName2) { 5.toInteractionInputValue() }
376-
setPropertyWriteHandler(inOutAction) { input, _ ->
374+
setPropertyReadHandler("propertyName1") { ... }
375+
setPropertyReadHandler("propertyName2") { ... }
376+
setPropertyWriteHandler("inOutAction") { input, _ ->
377+
...
377378
}
378379
setActionHandler(ACTION_NAME) { input, _ ->
380+
...
379381
}
380382
}
381383
}

0 commit comments

Comments
 (0)