BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
Public Types | |
typedef Poco::AutoPtr < DeviceUnpairCommand > | Ptr |
Public Types inherited from BeeeOn::Command | |
typedef Poco::AutoPtr< Command > | Ptr |
Public Member Functions | |
DeviceUnpairCommand (const DeviceID &deviceID, const Poco::Timespan &timeout=10 *Poco::Timespan::SECONDS) | |
DeviceID | deviceID () const |
Poco::Timespan | timeout () const |
std::string | toString () const override |
Result::Ptr | deriveResult (Answer::Ptr answer) const override |
Public Member Functions inherited from BeeeOn::PrefixCommand | |
PrefixCommand (const DevicePrefix &prefix) | |
DevicePrefix | prefix () const |
Public Member Functions inherited from BeeeOn::Command | |
std::string | name () const |
CommandHandler * | sendingHandler () const |
Public Member Functions inherited from BeeeOn::Castable | |
template<typename T > | |
bool | is () |
template<typename T > | |
bool | is () const |
template<typename C > | |
const C & | cast () const |
template<typename C > | |
C & | cast () |
Additional Inherited Members | |
Protected Member Functions inherited from BeeeOn::Command | |
void | setSendingHandler (CommandHandler *sender) |
Protected Attributes inherited from BeeeOn::Command | |
CommandHandler * | m_sendingHandler |
|
overridevirtual |
Derive result appropriate for the Command instance. The result is always created in the PENDING state.
The default implementation returns an instance of class Result as it is suitable for most commands. Specific command would override this method to derive another Result (sub)class.
Reimplemented from BeeeOn::Command.
|
overridevirtual |
Converts Command to human readable format.
Reimplemented from BeeeOn::Command.