Staled device

From ago control wiki
Jump to: navigation, search

Staled device

Agocontrol allows developers to set a device on a stale state.

This device is not removed from inventory and appears as staled on web UI (red icon).

A staled device is not refreshed until its stale flag is reseted again.

Device stale flag is on device controller responsibility. System cannot change the stale flag by itself.

Functions

  • suspendDevice(<device internalid>)

From created AgoConnection object call suspendDevice to set device stale flag

  • resumeDevice(<device internalid>)

From created AgoConnection object call resumeDevice to reset device stale flag

Event

When a device stale flag changed, an event "event.device.stale" is triggered

This event contains current device stale value (1|0)

Personal tools