API
trippLitePDU_simulator Struct Reference

#include <trippLitePDU_simulator.hpp>

Collaboration diagram for trippLitePDU_simulator:
Collaboration graph

Public Member Functions

 trippLitePDU_simulator ()
 
int connect (const std::string &ipAddr, const std::string &port)
 
int login (const std::string &user, const std::string &pass)
 
void postLogin ()
 
int turnOutletOn (uint16_t outletNum)
 
int turnOutletOff (uint16_t outletNum)
 
int devStatus (std::string &strRead)
 

Public Attributes

float m_voltage {120}
 
float m_frequency {60}
 
float m_lowTransferVoltage {70}
 
float m_current {4}
 
std::vector< int > m_outlets
 

Detailed Description

Definition at line 10 of file trippLitePDU_simulator.hpp.

Constructor & Destructor Documentation

◆ trippLitePDU_simulator()

trippLitePDU_simulator::trippLitePDU_simulator ( )
inline

Definition at line 20 of file trippLitePDU_simulator.hpp.

Member Function Documentation

◆ connect()

int trippLitePDU_simulator::connect ( const std::string &  ipAddr,
const std::string &  port 
)
inline

Definition at line 25 of file trippLitePDU_simulator.hpp.

◆ devStatus()

int trippLitePDU_simulator::devStatus ( std::string &  strRead)
inline

Definition at line 74 of file trippLitePDU_simulator.hpp.

◆ login()

int trippLitePDU_simulator::login ( const std::string &  user,
const std::string &  pass 
)
inline

Definition at line 35 of file trippLitePDU_simulator.hpp.

◆ postLogin()

void trippLitePDU_simulator::postLogin ( )
inline

Definition at line 46 of file trippLitePDU_simulator.hpp.

◆ turnOutletOff()

int trippLitePDU_simulator::turnOutletOff ( uint16_t  outletNum)
inline

Definition at line 62 of file trippLitePDU_simulator.hpp.

◆ turnOutletOn()

int trippLitePDU_simulator::turnOutletOn ( uint16_t  outletNum)
inline

Definition at line 50 of file trippLitePDU_simulator.hpp.

Member Data Documentation

◆ m_current

float trippLitePDU_simulator::m_current {4}

Definition at line 16 of file trippLitePDU_simulator.hpp.

Referenced by devStatus().

◆ m_frequency

float trippLitePDU_simulator::m_frequency {60}

Definition at line 13 of file trippLitePDU_simulator.hpp.

Referenced by devStatus().

◆ m_lowTransferVoltage

float trippLitePDU_simulator::m_lowTransferVoltage {70}

Definition at line 14 of file trippLitePDU_simulator.hpp.

Referenced by devStatus().

◆ m_outlets

std::vector<int> trippLitePDU_simulator::m_outlets

◆ m_voltage

float trippLitePDU_simulator::m_voltage {120}

Definition at line 12 of file trippLitePDU_simulator.hpp.

Referenced by devStatus().


The documentation for this struct was generated from the following file: