[jsscripting] Upgrade openhab-js to 4.7.3 (#16112)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
This commit is contained in:
parent
2fd46961fc
commit
222c40bdff
|
@ -231,7 +231,7 @@ var myVar = 'Hello world!';
|
|||
// Schedule a timer that expires in ten seconds
|
||||
setTimeout(() => {
|
||||
console.info(`Timer expired with variable value = "${myVar}"`);
|
||||
}, 1000);
|
||||
}, 10000);
|
||||
|
||||
myVar = 'Hello mutation!'; // When the timer runs, it will log "Hello mutation!" instead of "Hello world!"
|
||||
```
|
||||
|
@ -245,7 +245,7 @@ var myVar = 'Hello world!';
|
|||
// Schedule a timer that expires in ten seconds
|
||||
setTimeout((myVariable) => {
|
||||
console.info(`Timer expired with variable value = "${myVariable}"`);
|
||||
}, 1000, myVar); // Pass one or more variables as parameters here. They are passed through to the callback function.
|
||||
}, 10000, myVar); // Pass one or more variables as parameters here. They are passed through to the callback function.
|
||||
|
||||
myVar = 'Hello mutation!'; // When the timer runs, it will log "Hello world!"
|
||||
```
|
||||
|
@ -496,12 +496,12 @@ The Things namespace allows to interact with openHAB Things.
|
|||
See [openhab-js : things](https://openhab.github.io/openhab-js/things.html) for full API documentation.
|
||||
|
||||
- things : <code>object</code>
|
||||
- .getThing(uid, nullIfMissing) ⇒ <code>Thing</code>
|
||||
- .getThings() ⇒ <code>Array.<Thing></code>
|
||||
- .getThing(uid) ⇒ <code>Thing|null</code>
|
||||
- .getThings() ⇒ <code>Array[Thing]</code>
|
||||
|
||||
#### `getThing(uid, nullIfMissing)`
|
||||
|
||||
Calling `getThing(...)` returns a `Thing` object with the following properties:
|
||||
Calling `getThing(uid)` returns a `Thing` object with the following properties:
|
||||
|
||||
- Thing : <code>object</code>
|
||||
- .bridgeUID ⇒ <code>String</code>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
</bnd.importpackage>
|
||||
<graal.version>22.0.0.2</graal.version> <!-- DO NOT UPGRADE: 22.0.0.2 is the latest version working on armv7l / OpenJDK 11.0.16 & armv7l / Zulu 17.0.5+8 -->
|
||||
<oh.version>${project.version}</oh.version>
|
||||
<ohjs.version>openhab@4.7.2</ohjs.version>
|
||||
<ohjs.version>openhab@4.7.3</ohjs.version>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
|
|
Loading…
Reference in New Issue