mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-16 08:56:51 +01:00
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -26,6 +26,8 @@
|
||||
#include "Network.h"
|
||||
#include "SensorNetwork.h"
|
||||
#include "MQTTSNPacket.h"
|
||||
#include "MQTTSNGWEncapsulatedPacket.h"
|
||||
#include "MQTTSNGWForwarder.h"
|
||||
|
||||
namespace MQTTSNGW
|
||||
{
|
||||
@@ -230,13 +232,13 @@ private:
|
||||
/*=====================================
|
||||
Class Client
|
||||
=====================================*/
|
||||
#define MQTTSN_CLIENTID_LENGTH 23
|
||||
|
||||
typedef enum
|
||||
{
|
||||
Cstat_Disconnected = 0, Cstat_TryConnecting, Cstat_Connecting, Cstat_Active, Cstat_Asleep, Cstat_Awake, Cstat_Lost
|
||||
} ClientStatus;
|
||||
|
||||
class Forwarder;
|
||||
|
||||
class Client
|
||||
{
|
||||
@@ -281,6 +283,9 @@ public:
|
||||
void setClientAddress(SensorNetAddress* sensorNetAddr);
|
||||
void setSensorNetType(bool stable);
|
||||
|
||||
Forwarder* getForwarder(void);
|
||||
void setForwarder(Forwarder* forwader);
|
||||
|
||||
void setClientId(MQTTSNString id);
|
||||
void setWillTopic(MQTTSNString willTopic);
|
||||
void setWillMsg(MQTTSNString willmsg);
|
||||
@@ -339,6 +344,9 @@ private:
|
||||
bool _sensorNetype; // false: unstable network like a G3
|
||||
SensorNetAddress _sensorNetAddr;
|
||||
|
||||
Forwarder* _forwarder;
|
||||
|
||||
|
||||
bool _sessionStatus;
|
||||
bool _hasPredefTopic;
|
||||
|
||||
@@ -373,5 +381,7 @@ private:
|
||||
bool _authorize;
|
||||
};
|
||||
|
||||
|
||||
|
||||
}
|
||||
#endif /* MQTTSNGWCLIENT_H_ */
|
||||
|
||||
Reference in New Issue
Block a user