Skip to end of metadata
Go to start of metadata

"context" object provide context information about script execution environment.

 

"fireEvent" method


"host" object return information on thing which trigger is executed.

 

eventNamerequiredevent to fire
eventValue event value

 

 

Example

 

"host" property


Returns information on the thing in which context script executed.

PropertyReadonlyReturn TypeDescription
mexobjectthing
namexstringthing name
descriptionxstringthing description
methodsxobject[]array of thing methods
propertiesxobject[]array of thing methods
eventsxobject[]array of thing events


Example



 

 

 

 

 

  • No labels