Hi Ian,
I almost finished the gateway design except the
MQTTPacket.
It looks that the design concept of the MQTTPacket is
different from the MQTTSNPacket one's.
NetworkHandler is included in the packet as follows;
Packet . send( Network ) Packet
sends by it self through Network.
Packet . read( Network ) This
is very useful for client applications.
But, those do not fit for my gateway architecture.
The architecture requires;
Network . send( Packet ) Network
sends a packet.
Network . read( Packet )
Requirement of Paho gateway is using MQTTSNPacket and
MQTTPacket.
however, It is difficult for me to use MQTTPacket for the
gateway.
The gateway follows the mqtt-sn.embeded-c project directory
structure.
paho.mqtt-sn.embeded-c
/ MQTTSNGateway
/src
main.cpp
MQTTSNGatway.cpp
MQTTSNGWClient.cpp
MQTTSNGWPacket.cpp <=== Lapper
class of MQTTSNPacket
MQTTGWPacket.cpp
<=== New class of
MQTTPacket
MQTTSNGWTasks.cpp
MQTTSNGWProcess.cpp
...........
/linux
linux.cpp
Network.cpp
SensorNetwork.cpp
Threading
/MQTTSNPacket
/src
..........
Do you mind if I create MQTTGWPacket class which has same
functions of MQTTSNPacket?
Isn't it Paho gateway any more ?
Tomoaki