"context" object provide context information about script execution environment.
"fireEvent" method
"host" object return information on thing which trigger is executed.
| eventName | required | event to fire |
| eventValue | event value |
Example
"host" property
Returns information on the thing in which context script executed.
| Property | Readonly | Return Type | Description |
|---|---|---|---|
| me | x | object | thing |
| name | x | string | thing name |
| description | x | string | thing description |
| methods | x | object[] | array of thing methods |
| properties | x | object[] | array of thing methods |
| events | x | object[] | array of thing events |
Example