SPSP
Simple publish-subscribe protocol. Connects low power IoT clients to MQTT.
All Classes Files Functions Variables Typedefs Enumerations
Classes | Macros | Typedefs
node.hpp File Reference

Node interface for SPSP. More...

#include <chrono>
#include <cinttypes>
#include <climits>
#include <functional>
#include <memory>
#include <mutex>
#include <thread>
#include "spsp/layers.hpp"
#include "spsp/local_message.hpp"
#include "spsp/logger.hpp"
#include "spsp/version.hpp"
Include dependency graph for node.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SPSP::INode
 Most generic node type of SPSP. More...
 
class  SPSP::ILocalNode< TLocalLayer >
 Generic local node of SPSP. More...
 
class  SPSP::IFarNode< TFarLayer >
 Generic far layer node of SPSP. More...
 
class  SPSP::ILocalAndFarNode< TLocalLayer, TFarLayer >
 Generic local and far layer node of SPSP. More...
 

Macros

#define SPSP_LOG_TAG   "SPSP/Node"
 

Typedefs

using SPSP::SubscribeCb = std::function< void(const std::string &topic, const std::string &payload)>
 Subscribe callback type. More...
 

Detailed Description

Node interface for SPSP.

Author
Dávid Benko (david.nosp@m.benk.nosp@m.o@dav.nosp@m.idbe.nosp@m.nko.d.nosp@m.ev)

Definition in file node.hpp.

Typedef Documentation

◆ SubscribeCb

using SPSP::SubscribeCb = typedef std::function<void(const std::string& topic, const std::string& payload)>

Subscribe callback type.

Definition at line 42 of file node.hpp.