@@ -2400,7 +2400,7 @@ <h2>ConsumedThing Examples</h2>
2400
2400
};
2401
2401
2402
2402
try {
2403
- // subscribe to property change for “ temperature”
2403
+ // subscribe to property change for " temperature"
2404
2404
await thing.observeProperty("temperature", async (data) => {
2405
2405
try {
2406
2406
console.log("Temperature changed to: " + await data.value());
@@ -2409,11 +2409,11 @@ <h2>ConsumedThing Examples</h2>
2409
2409
console.error(error);
2410
2410
}
2411
2411
});
2412
- // subscribe to the “ ready” event defined in the TD
2412
+ // subscribe to the " ready" event defined in the TD
2413
2413
await thing.subscribeEvent("ready", async (eventData) => {
2414
2414
try {
2415
2415
console.log("Ready; index: " + await eventData.value());
2416
- // run the “ startMeasurement” action defined by TD
2416
+ // run the " startMeasurement" action defined by TD
2417
2417
await thing.invokeAction("startMeasurement", { units: "Celsius" });
2418
2418
console.log("Measurement started.");
2419
2419
} catch (error) {
@@ -2457,7 +2457,7 @@ <h2>ConsumedThing Examples</h2>
2457
2457
let response;
2458
2458
let image;
2459
2459
try {
2460
- response = await thing.invokeAction(“ takePicture”) );
2460
+ response = await thing.invokeAction(" takePicture" );
2461
2461
image = await response.value() // throws NotReadableError --> schema not defined
2462
2462
} catch(ex) {
2463
2463
image = await response.arrayBuffer();
@@ -2519,7 +2519,7 @@ <h2>ConsumedThing Examples</h2>
2519
2519
parser.on('data', data => data.name === 'startObject' && ++objectCounter);
2520
2520
parser.on('end', () => console.log(`Found ${objectCounter} objects.`));
2521
2521
2522
- const response = await thing.readProperty(“ eventHistory” )
2522
+ const response = await thing.readProperty(" eventHistory" )
2523
2523
await response.data.pipeTo(parser);
2524
2524
2525
2525
// Found N objects
0 commit comments