mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-19 02:06:50 +01:00
I think the architecture of the ble sensor network, which does not use threads per socket, can be applied to DTLS. Known bug: Occasionally a timeout error occurs when connecting to RFCOMM. BLE is not supported yet. I need help to do it. Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -45,8 +45,7 @@ MessageIdTable::~MessageIdTable()
|
||||
_mutex.unlock();
|
||||
}
|
||||
|
||||
MessageIdElement* MessageIdTable::add(Aggregater* aggregater, Client* client,
|
||||
uint16_t clientMsgId)
|
||||
MessageIdElement* MessageIdTable::add(Aggregater* aggregater, Client* client, uint16_t clientMsgId)
|
||||
{
|
||||
if (_cnt > _maxSize)
|
||||
{
|
||||
@@ -194,18 +193,12 @@ uint16_t MessageIdTable::getMsgId(Client* client, uint16_t clientMsgId)
|
||||
* Class MessageIdElement
|
||||
===============================*/
|
||||
MessageIdElement::MessageIdElement(void) :
|
||||
_msgId
|
||||
{ 0 }, _clientMsgId
|
||||
{ 0 }, _client
|
||||
{ nullptr }, _next
|
||||
{ nullptr }, _prev
|
||||
{ nullptr }
|
||||
_msgId { 0 }, _clientMsgId { 0 }, _client { nullptr }, _next { nullptr }, _prev { nullptr }
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
MessageIdElement::MessageIdElement(uint16_t msgId, Client* client,
|
||||
uint16_t clientMsgId) :
|
||||
MessageIdElement::MessageIdElement(uint16_t msgId, Client* client, uint16_t clientMsgId) :
|
||||
MessageIdElement()
|
||||
{
|
||||
_msgId = msgId;
|
||||
|
||||
Reference in New Issue
Block a user