SPSP
Simple publish-subscribe protocol. Connects low power IoT clients to MQTT.
All Classes Files Functions Variables Typedefs Enumerations
Public Member Functions | List of all members
SPSP::ILocalAndFarNode< TLocalLayer, TFarLayer > Class Template Reference

Generic local and far layer node of SPSP. More...

#include <node.hpp>

Inheritance diagram for SPSP::ILocalAndFarNode< TLocalLayer, TFarLayer >:
Inheritance graph
[legend]
Collaboration diagram for SPSP::ILocalAndFarNode< TLocalLayer, TFarLayer >:
Collaboration graph
[legend]

Public Member Functions

 ILocalAndFarNode (TLocalLayer *ll, TFarLayer *fl)
 Constructs a new node. More...
 
- Public Member Functions inherited from SPSP::ILocalNode< TLocalLayer >
 ILocalNode (TLocalLayer *ll)
 Constructs a new node. More...
 
void receiveLocal (const LocalMessageT &msg, int rssi=NODE_RSSI_UNKNOWN)
 Receives the message from local layer. More...
 
void setLocalRecvSendCb (LocalRecvSendCb cb)
 Sets local receive/send callback function. More...
 
- Public Member Functions inherited from SPSP::IFarNode< TFarLayer >
 IFarNode (TFarLayer *fl)
 Constructs a new node. More...
 
virtual bool receiveFar (const std::string &topic, const std::string &payload)=0
 Receives the message from far layer. More...
 

Additional Inherited Members

- Protected Member Functions inherited from SPSP::ILocalNode< TLocalLayer >
TLocalLayer * getLocalLayer () const
 Gets the far layer object. More...
 
bool sendLocal (const LocalMessageT &msg)
 Sends the message to local layer. More...
 
void publishRssi (const LocalAddrT &addr, int rssi)
 Publishes RSSI of received message from addr More...
 
virtual bool processProbeReq (const LocalMessageT &req, int rssi=NODE_RSSI_UNKNOWN)=0
 Processes PROBE_REQ message. More...
 
virtual bool processProbeRes (const LocalMessageT &req, int rssi=NODE_RSSI_UNKNOWN)=0
 Processes PROBE_RES message. More...
 
virtual bool processPub (const LocalMessageT &req, int rssi=NODE_RSSI_UNKNOWN)=0
 Processes PUB message. More...
 
virtual bool processSubReq (const LocalMessageT &req, int rssi=NODE_RSSI_UNKNOWN)=0
 Processes SUB_REQ message. More...
 
virtual bool processSubData (const LocalMessageT &req, int rssi=NODE_RSSI_UNKNOWN)=0
 Processes SUB_DATA message. More...
 
virtual bool processUnsub (const LocalMessageT &req, int rssi=NODE_RSSI_UNKNOWN)=0
 Processes UNSUB message. More...
 
virtual bool processTimeReq (const LocalMessageT &req, int rssi=NODE_RSSI_UNKNOWN)=0
 Processes TIME_REQ message. More...
 
virtual bool processTimeRes (const LocalMessageT &req, int rssi=NODE_RSSI_UNKNOWN)=0
 Processes TIME_RES message. More...
 
- Protected Member Functions inherited from SPSP::IFarNode< TFarLayer >
TFarLayer * getFarLayer () const
 Gets the far layer object. More...
 

Detailed Description

template<typename TLocalLayer, typename TFarLayer>
class SPSP::ILocalAndFarNode< TLocalLayer, TFarLayer >

Generic local and far layer node of SPSP.

Template Parameters
TLocalLayerType of local layer
TFarLayerType of far layer

Definition at line 408 of file node.hpp.

Constructor & Destructor Documentation

◆ ILocalAndFarNode()

template<typename TLocalLayer , typename TFarLayer >
SPSP::ILocalAndFarNode< TLocalLayer, TFarLayer >::ILocalAndFarNode ( TLocalLayer *  ll,
TFarLayer *  fl 
)
inline

Constructs a new node.

Definition at line 416 of file node.hpp.


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