File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2432,7 +2432,7 @@ <h2>ConsumedThing Examples</h2>
2432
2432
console.log("Temperature: " + temperature);
2433
2433
2434
2434
await thing.unsubscribe("ready");
2435
- console.log("Unsubscribed from the ‘ ready’ event.");
2435
+ console.log("Unsubscribed from the ' ready' event.");
2436
2436
} catch (error) {
2437
2437
console.log("Error in the cleanup function");
2438
2438
}
@@ -4237,7 +4237,7 @@ <h2>API design rationale</h2>
4237
4237
and the < code > open()</ code > method are directly exposed on the object.
4238
4238
</ p >
4239
4239
< pre class ="example " title ="Open a lock with a simple API ">
4240
- let lock = await WoT.consume(‘ https://td.my.com/lock-00123’ );
4240
+ let lock = await WoT.consume(' https://td.my.com/lock-00123' );
4241
4241
console.log(lock.status);
4242
4242
lock.open('withThisKey');
4243
4243
</ pre >
@@ -4262,8 +4262,8 @@ <h2>API design rationale</h2>
4262
4262
let res = await fetch(‘https://td.my.com/lock-00123’);
4263
4263
let td = await res.json();
4264
4264
let lock = new ConsumedThing(td);
4265
- console.log(lock.readProperty(‘ status’ ));
4266
- lock.invokeAction(‘ open’ , 'withThisKey');
4265
+ console.log(lock.readProperty(' status' ));
4266
+ lock.invokeAction(' open' , 'withThisKey');
4267
4267
</ pre >
4268
4268
</ section >
4269
4269
< p >
You can’t perform that action at this time.
0 commit comments