Skip to content

Commit 08f31d7

Browse files
committed
Use simple double quotes in code examples
1 parent 68a909b commit 08f31d7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2400,7 +2400,7 @@ <h2>ConsumedThing Examples</h2>
24002400
};
24012401

24022402
try {
2403-
// subscribe to property change for temperature
2403+
// subscribe to property change for "temperature"
24042404
await thing.observeProperty("temperature", async (data) => {
24052405
try {
24062406
console.log("Temperature changed to: " + await data.value());
@@ -2409,11 +2409,11 @@ <h2>ConsumedThing Examples</h2>
24092409
console.error(error);
24102410
}
24112411
});
2412-
// subscribe to the ready event defined in the TD
2412+
// subscribe to the "ready" event defined in the TD
24132413
await thing.subscribeEvent("ready", async (eventData) => {
24142414
try {
24152415
console.log("Ready; index: " + await eventData.value());
2416-
// run the startMeasurement action defined by TD
2416+
// run the "startMeasurement" action defined by TD
24172417
await thing.invokeAction("startMeasurement", { units: "Celsius" });
24182418
console.log("Measurement started.");
24192419
} catch (error) {
@@ -2457,7 +2457,7 @@ <h2>ConsumedThing Examples</h2>
24572457
let response;
24582458
let image;
24592459
try {
2460-
response = await thing.invokeAction(takePicture”));
2460+
response = await thing.invokeAction("takePicture");
24612461
image = await response.value() // throws NotReadableError --> schema not defined
24622462
} catch(ex) {
24632463
image = await response.arrayBuffer();
@@ -2519,7 +2519,7 @@ <h2>ConsumedThing Examples</h2>
25192519
parser.on('data', data => data.name === 'startObject' && ++objectCounter);
25202520
parser.on('end', () => console.log(`Found ${objectCounter} objects.`));
25212521

2522-
const response = await thing.readProperty(eventHistory)
2522+
const response = await thing.readProperty("eventHistory")
25232523
await response.data.pipeTo(parser);
25242524

25252525
// Found N objects

0 commit comments

Comments
 (0)