mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-14 16:06:51 +01:00
Update: Add Aggregate Gateway functions. #127
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -23,19 +23,18 @@
|
||||
using namespace MQTTSNGW;
|
||||
|
||||
/*
|
||||
* Gateway Process
|
||||
* Gateway Application
|
||||
*/
|
||||
Gateway* gw = new Gateway();
|
||||
PacketHandleTask task1(gw);
|
||||
ClientRecvTask task2(gw);
|
||||
ClientSendTask task3(gw);
|
||||
BrokerRecvTask task4(gw);
|
||||
BrokerSendTask task5(gw);
|
||||
Gateway gateway;
|
||||
PacketHandleTask task1(&gateway);
|
||||
ClientRecvTask task2(&gateway);
|
||||
ClientSendTask task3(&gateway);
|
||||
BrokerRecvTask task4(&gateway);
|
||||
BrokerSendTask task5(&gateway);
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
gw->initialize(argc, argv);
|
||||
gw->run();
|
||||
delete gw;
|
||||
gateway.initialize(argc, argv);
|
||||
gateway.run();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user