Jack Hansdampf / mbed-mqtt-GSOE1

Dependents:   ESP8266MQTT

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MQTTSNGWClientSendTask.h Source File

MQTTSNGWClientSendTask.h

00001 /**************************************************************************************
00002  * Copyright (c) 2016, Tomoaki Yamaguchi
00003  *
00004  * All rights reserved. This program and the accompanying materials
00005  * are made available under the terms of the Eclipse Public License v1.0
00006  * and Eclipse Distribution License v1.0 which accompany this distribution.
00007  *
00008  * The Eclipse Public License is available at
00009  *    http://www.eclipse.org/legal/epl-v10.html
00010  * and the Eclipse Distribution License is available at
00011  *   http://www.eclipse.org/org/documents/edl-v10.php.
00012  *
00013  * Contributors:
00014  *    Tomoaki Yamaguchi - initial API and implementation and/or initial documentation
00015  **************************************************************************************/
00016 #ifndef MQTTSNGWCLIENTSENDTASK_H_
00017 #define MQTTSNGWCLIENTSENDTASK_H_
00018 
00019 #include "MQTTSNGateway.h"
00020 #include "SensorNetwork.h"
00021 
00022 namespace MQTTSNGW
00023 {
00024 class AdapterManager;
00025 
00026 /*=====================================
00027  Class ClientSendTask
00028  =====================================*/
00029 class ClientSendTask: public Thread
00030 {
00031     MAGIC_WORD_FOR_THREAD;
00032     friend AdapterManager;
00033 public:
00034     ClientSendTask(Gateway* gateway);
00035     ~ClientSendTask(void);
00036     void run(void);
00037 
00038 private:
00039     void log(Client* client, MQTTSNPacket* packet);
00040 
00041     Gateway* _gateway;
00042     SensorNetwork* _sensorNetwork;
00043 };
00044 
00045 }
00046 
00047 #endif /* MQTTSNGWCLIENTSENDTASK_H_ */