stop

fun stop()(source)

Stops the EdgeAgent. The function sets the state of EdgeAgent to State.STOPPING. All ongoing events that was created by the EdgeAgent are stopped. After all the events are stopped the state of the EdgeAgent is set to State.STOPPED.