Helper

bool Remote::isSingleCommonAddress(std::uint_fast16_t commonAddress)

test if common address is valid and identifies a single station

Parameters:

commonAddress – address to be tested

Returns:

if common address identifies a single station

bool Remote::isGlobalCommonAddress(std::uint_fast16_t commonAddress)

test if common address is a broadcast address

Parameters:

commonAddress – address to be tested

Returns:

if common address is a broadcast address

std::string Remote::rawMessageFormatter(uint_fast8_t *msg, int msgSize)

convert a raw message byte stream to a humanly readable string

Parameters:
  • msg – pointer to first character of message

  • msgSize – character count of message

Returns:

string

py::dict Remote::rawMessageDictionaryFormatter(uint_fast8_t *msg, int msgSize)

convert a raw message byte stream to a humanly readable string

Parameters:
  • msg – pointer to first character of message

  • msgSize – character count of message

Returns:

string

std::string Remote::CP56Time2a_toString(CP56Time2a time)

convert a CP56Time2a timestamp to a readable date time string

Parameters:

time – formatted as CP56Time2a

Returns:

time formatted as string

std::string Remote::connectionStringFormatter(const std::string &ip, uint_fast16_t port)

validate ip and port and join them to a connectionString

Parameters:
  • ip – ip address or hostname of remote server

  • port – port address of remote server

Returns:

connectionString (ip:port)