Skip to content

Commit 7ce79cd

Browse files
authored
docs(README): use correct variable name in client example (#1167)
1 parent b1b1f20 commit 7ce79cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ WoTHelpers.fetch("http://localhost:8080/counter").then(async (td) => {
192192
const WoT = await servient.start();
193193
// Then from here on you can consume the thing
194194
let thing = await WoT.consume(td);
195-
thing.observeProperty("count", async (output) => { console.log("count:", await data.value()); });
195+
thing.observeProperty("count", async (data) => { console.log("count:", await data.value()); });
196196
for (let i = 0; i < 5; i++) {
197197
await thing.invokeAction("increment");
198198
}

0 commit comments

Comments
 (0)