Raritan PX2/PX3 JSON-RPC API
|
Outlet interface More...
import"Outlet.idl";
Classes | |
struct | LedState |
Outlet LED state More... | |
struct | MetaData |
Outlet metadata More... | |
struct | Sensors |
Outlet sensors More... | |
struct | Settings |
Outlet settings More... | |
struct | State |
Outlet state More... | |
Public Types | |
enum | PowerState { PS_OFF, PS_ON } |
Outlet power state. More... | |
enum | StartupState { SS_ON, SS_OFF, SS_LASTKNOWN, SS_PDUDEF } |
Outlet power state on device startup More... | |
Public Member Functions | |
MetaData | getMetaData () |
Retrieve the outlet metadata. More... | |
Sensors | getSensors () |
Get the outlet sensors. More... | |
State | getState () |
Retrieve the outlet state. More... | |
int | setPowerState (in PowerState pstate) |
Switch the outlet. More... | |
int | cyclePowerState () |
Power-cycle the outlet. More... | |
Settings | getSettings () |
Retrieve the outlet settings. More... | |
int | setSettings (in Settings settings) |
Change the outlet settings. More... | |
void | getIOP (out Inlet_2_0_1 i, out OverCurrentProtector_3_0_1 o, out vector< Pole_4_0_1 > p) |
Get inlet, overcurrent protector and poles. More... | |
Controller_4_0_0 | getController () |
Get the controller for this outlet. More... | |
int | unstick () |
Trigger an attempt to un-stick sticking relay contacts. More... | |
Public Member Functions inherited from pdumodel::EDevice | |
vector< EDevice > | getParents () |
Get the list of devices that provide energy to this device. More... | |
vector< EDevice > | getChildren () |
Get the list of devices that are directly fed by this device. More... | |
Public Attributes | |
constant int | ERR_OUTLET_NOT_SWITCHABLE = 1 |
Outlet is not switchable. | |
constant int | ERR_LOAD_SHEDDING_ACTIVE = 2 |
Load-shedding is enabled (deprecated) | |
constant int | ERR_OUTLET_DISABLED = 3 |
Outlet is disabled. | |
constant int | ERR_OUTLET_NOT_OFF = 4 |
Outlet is on or in power-cylce; unstick not possible. | |
constant int | ERR_INVALID_PARAM = 1 |
Invalid parameters. | |
valueobject | PowerControlEvent: event::UserEvent { PowerState state |
Event: Power control was initiated. More... | |
boolean | cycle |
Whether the outlet was cycled. | |
valueobject | StateChangedEvent: idl::Event { State oldState |
Event: Outlet state has changed. More... | |
State | newState |
State after change. | |
valueobject | SettingsChangedEvent: event::UserEvent { Settings oldSettings |
Event: Outlet settings have been changed. More... | |
Settings | newSettings |
Settings after change. | |
Outlet interface
int pdumodel::Outlet_2_1_1::cyclePowerState | ( | ) |
Power-cycle the outlet.
Controller_4_0_0 pdumodel::Outlet_2_1_1::getController | ( | ) |
Get the controller for this outlet.
void pdumodel::Outlet_2_1_1::getIOP | ( | out Inlet_2_0_1 | i, |
out OverCurrentProtector_3_0_1 | o, | ||
out vector< Pole_4_0_1 > | p | ||
) |
Get inlet, overcurrent protector and poles.
i | Result: Inlet reference |
o | Result: Overcurrent protector reference |
p | Result: List of poles |
MetaData pdumodel::Outlet_2_1_1::getMetaData | ( | ) |
Retrieve the outlet metadata.
Sensors pdumodel::Outlet_2_1_1::getSensors | ( | ) |
Get the outlet sensors.
Settings pdumodel::Outlet_2_1_1::getSettings | ( | ) |
Retrieve the outlet settings.
State pdumodel::Outlet_2_1_1::getState | ( | ) |
Retrieve the outlet state.
int pdumodel::Outlet_2_1_1::setPowerState | ( | in PowerState | pstate | ) |
Switch the outlet.
pstate | New power state |
int pdumodel::Outlet_2_1_1::setSettings | ( | in Settings | settings | ) |
Change the outlet settings.
settings | New outlet settings |
int pdumodel::Outlet_2_1_1::unstick | ( | ) |
Trigger an attempt to un-stick sticking relay contacts.
Tries repairing relay contacts that are sticked together due to wear by switching the relay in a certain pattern. Prior to running this method, the outlet must be in 'off' state to acknowledge that loads were disconnected.
valueobject pdumodel::Outlet_2_1_1::PowerControlEvent |
Event: Power control was initiated.
State the outlet was switched to (if cycle is false)
valueobject pdumodel::Outlet_2_1_1::SettingsChangedEvent |
Event: Outlet settings have been changed.
Settings before change
valueobject pdumodel::Outlet_2_1_1::StateChangedEvent |
Event: Outlet state has changed.
State before change