Skip to content

Commit

Permalink
docs(README): use correct variable name in client example (eclipse-th…
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb authored Nov 23, 2023
1 parent b1b1f20 commit 7ce79cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ WoTHelpers.fetch("http://localhost:8080/counter").then(async (td) => {
const WoT = await servient.start();
// Then from here on you can consume the thing
let thing = await WoT.consume(td);
thing.observeProperty("count", async (output) => { console.log("count:", await data.value()); });
thing.observeProperty("count", async (data) => { console.log("count:", await data.value()); });
for (let i = 0; i < 5; i++) {
await thing.invokeAction("increment");
}
Expand Down

0 comments on commit 7ce79cd

Please sign in to comment.