8 #ifndef I_WPP_CONNECTION_H_
9 #define I_WPP_CONNECTION_H_
16 #define WPP_CONN_I_PACKETS_QUEUE_SIZE 10
SafeQueue is an implementation of the thread/IRQ safe queue that does not use dynamic memory,...
Represents a client interface for Wpp library.
virtual SESSION_T connect(Lwm2mSecurity &security)=0
Establishes a connection using the provided Lwm2mSecurity object.
uint16_t getDataBlockSize()
Retrieves the COAP block size.
virtual void disconnect(SESSION_T session)=0
Disconnects from the specified session.
virtual bool sendPacket(const Packet &packet)=0
Sends a packet over the connection.
WppConnection & operator=(WppConnection &&)=delete
void clearPacketQueue()
Clears the packet queue.
WppConnection & operator=(const WppConnection &)=delete
virtual bool sessionCmp(SESSION_T session1, SESSION_T session2)=0
Compares two session identifiers.
bool setDataBlockSize(uint16_t size)
Sets the COAP block size.
WppConnection(WppConnection &&)=delete
bool addPacketToQueue(const Packet &packet)
Adds a packet to the packet queue.
WppConnection(const WppConnection &)=delete
uint8_t getPacketQueueSize()
Retrieves the size of the packet queue.
void handlePacketsInQueue(WppClient &client)
Processes the packets in the packet queue.
The WppConnection class represents a connection interface for the Wpp library.