18 #ifndef HF_APP_LOCALLOOP_H 19 #define HF_APP_LOCALLOOP_H 40 recv_tsp(_recv_tsp), _uid(uid), tsp(tsp), other(nullptr)
78 std::vector<HF::Devices::Node::Transport *> devices_tsp;
84 while (!devices_tsp.empty())
86 auto tsp = devices_tsp.back();
88 devices_tsp.pop_back();
109 Link *dev_link =
new Link(base_tsp,
new HF::UID::URI(
"base"));
110 Link *base_link =
new Link(*dev_tsp,
new HF::UID::URI(uid));
112 dev_link->other = base_link;
113 base_link->other = dev_link;
115 dev_tsp->
add(dev_link);
116 base_tsp.
add(base_link);
118 devices_tsp.push_back(dev_tsp);
147 void remove(Endpoint &ep, uint16_t group, uint16_t device)
154 void remove(Endpoint &ep, uint16_t group)
HF::UID::UID_T * _uid
UID associated with this link.
void receive(HF::Transport::Link *link, HF::Common::ByteArray &payload)
Receive the data in payload, coming in in the given link and deliver the decoded packet to all regist...
This is the top level include file for the HAN-FUN library.
Common::Result create(Endpoint &ep, uint16_t group)
Create a new group of devices at the transport layer with the given address.
Parent class for transport layer implementations on a HAN-FUN Concentrator device.
void add(HF::Transport::Endpoint *ep)
Register the given Endpoint to receive events.
This class defines the API for the transport layer.
const HF::UID::UID uid() const
Return the end-point UID associated with this link.
Parent class for all HF::Transport::Link implementations.
This class represents the interface common to all HAN-FUN devices.
Parent class for transport layer implementations on a HAN-FUN Node.
Common::Result add(Endpoint &ep, uint16_t group, uint16_t device)
Add the given device to the given group for the given end-point ep.
Wrapper around UID_T pointer's.
This class represents a byte array.
virtual void destroy()=0
Free the system resources associated with this transport layer.
void add(HF::Transport::Endpoint *ep)
Register the given Endpoint to receive events.
#define UNUSED(x)
Helper macro to remove warning about unused function/method argument.
Parent class for all HF::Transport::Layer implementations.
virtual void send(Common::ByteArray &array)=0
Send the data in the given ByteArray using the link to the remote end-point.
This class represents an empty UID.
void destroy()
Free the system resources associated with this transport layer.
Result
Commands result codes.
Top-level namespace for the HAN-FUN library.