State Machine - onTransition
When a State Machine performs a transiton between States, a method will be called that you can customize.
function onTransition() {
...
}
- or -
function onTransition(value) {
...
}
- or -
function onTransition(latitude, longitude) {
...
}
The method can be called with an optional parameter. The value that will be passed in will be added by the Handle method that initiates the transition. If the value is a geolocation, both the latitude and longitude will be provided.
You will also have access to the Device Properties, Device Properties, Property Bag and state machines and can invoke Output Commands.