@@ -369,21 +369,21 @@ <h2>The <dfn>ThingDescription</dfn> type</h2>
369
369
</ section >
370
370
</ section >
371
371
372
- < section data-dfn-for ="WebOfThings ">
373
- < h2 > The < dfn > WebOfThings </ dfn > namespace</ dfn > </ h2 >
372
+ < section data-dfn-for ="WOT ">
373
+ < h2 > The < dfn > WOT </ dfn > namespace</ dfn > </ h2 >
374
374
< p >
375
375
Defines the < dfn > WoT API object</ dfn > as a singleton and contains the API
376
376
methods, grouped by conformance classes.
377
377
</ p >
378
378
< pre class ="idl ">
379
379
[SecureContext, Exposed=(Window,Worker)]
380
- namespace WebOfThings {
380
+ namespace WOT {
381
381
// methods defined in UA conformance classes
382
382
};
383
383
</ pre >
384
384
< section > < h3 > The < dfn > consume()</ dfn > method</ h3 >
385
385
< pre class ="idl ">
386
- partial namespace WebOfThings {
386
+ partial namespace WOT {
387
387
Promise<ConsumedThing> consume(ThingDescription td);
388
388
};
389
389
</ pre >
@@ -419,7 +419,7 @@ <h2>The <dfn>WebOfThings</dfn> namespace</dfn></h2>
419
419
420
420
< section > < h3 > The < dfn > produce()</ dfn > method</ h3 >
421
421
< pre class ="idl ">
422
- partial namespace WebOfThings {
422
+ partial namespace WOT {
423
423
Promise<ExposedThing> produce(ThingDescription td);
424
424
};
425
425
</ pre >
@@ -444,7 +444,7 @@ <h2>The <dfn>WebOfThings</dfn> namespace</dfn></h2>
444
444
445
445
< section > < h3 > The < dfn > discover()</ dfn > method</ h3 >
446
446
< pre class ="idl ">
447
- partial namespace WebOfThings {
447
+ partial namespace WOT {
448
448
ThingDiscovery discover(optional ThingFilter filter = null);
449
449
};
450
450
</ pre >
@@ -2797,7 +2797,7 @@ <h2>ExposedThing Examples</h2>
2797
2797
onchange: temperatureValueDefinition
2798
2798
}
2799
2799
};
2800
- let thing1 = await WebOfThings .produce(tdFragment);
2800
+ let thing1 = await WOT .produce(tdFragment);
2801
2801
// initialize Properties
2802
2802
await thing1.writeProperty("temperature", 0);
2803
2803
// add service handlers
0 commit comments