|
roo_transceivers
API Documentation for roo_transceivers
|
Identifies a transceiver device by schema and device id. More...
#include <id.h>
Public Member Functions | |
| DeviceLocator () | |
| DeviceLocator (roo::string_view schema, roo::string_view device_id) | |
| const DeviceSchema & | schema () const |
| Returns the device schema. | |
| const DeviceId & | device_id () const |
| Returns the device id. | |
| bool | isDefined () const |
| Returns true if schema or device id is set. | |
| void | write_cstr (char *buf) const |
Writes a null-terminated string representation into buf. | |
| std::string | toString () const |
| Returns a string representation. | |
| roo_transceivers::DeviceLocator::DeviceLocator | ( | roo::string_view | schema, |
| roo::string_view | device_id | ||
| ) |
|
inline |
Returns the device id.
Definition at line 30 of file id.h.
Referenced by roo_transceivers::SensorLocator::device_id(), roo_transceivers::ActuatorLocator::device_id(), isDefined(), operator<<(), roo_transceivers::operator==(), roo_transceivers::OneWireUniverse::readSensor(), roo_transceivers::ArduinoPreferencesBindingStore::setDeviceBinding(), roo_transceivers::proto::SrvDeviceAdded(), and roo_transceivers::proto::SrvReading().
|
inline |
Returns true if schema or device id is set.
Definition at line 33 of file id.h.
References device_id().
Referenced by roo_transceivers::SensorLocator::isDefined(), and roo_transceivers::ActuatorLocator::isDefined().
|
inline |
Returns the device schema.
Definition at line 28 of file id.h.
Referenced by roo_transceivers::OneWireUniverse::getSensorQuantity(), operator<<(), roo_transceivers::operator==(), roo_transceivers::OneWireUniverse::readSensor(), roo_transceivers::SensorLocator::schema(), roo_transceivers::ActuatorLocator::schema(), roo_transceivers::ArduinoPreferencesBindingStore::setDeviceBinding(), roo_transceivers::proto::SrvDeviceAdded(), and roo_transceivers::proto::SrvReading().
| std::string roo_transceivers::DeviceLocator::toString | ( | ) | const |
| void roo_transceivers::DeviceLocator::write_cstr | ( | char * | buf | ) | const |
Writes a null-terminated string representation into buf.
Definition at line 11 of file id.cpp.
Referenced by toString(), roo_transceivers::SensorLocator::write_cstr(), and roo_transceivers::ActuatorLocator::write_cstr().