Jack Hansdampf / mbed-mqtt-GSOE1

Dependents:   ESP8266MQTT

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MQTTSNGWBrokerSendTask.h Source File

MQTTSNGWBrokerSendTask.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 MQTTSNGWBROKERSENDTASK_H_
00017 #define MQTTSNGWBROKERSENDTASK_H_
00018 
00019 #include "MQTTSNGWDefines.h"
00020 #include "MQTTSNGateway.h"
00021 #include "MQTTSNGWClient.h"
00022 
00023 namespace MQTTSNGW
00024 {
00025 class Adapter;
00026 
00027 /*=====================================
00028      Class BrokerSendTask
00029  =====================================*/
00030 class BrokerSendTask : public Thread
00031 {
00032     MAGIC_WORD_FOR_THREAD;
00033     friend AdapterManager;
00034 public:
00035     BrokerSendTask(Gateway* gateway);
00036     ~BrokerSendTask();
00037     void initialize(int argc, char** argv);
00038     void run();
00039 private:
00040     void log(Client*, MQTTGWPacket*);
00041     Gateway* _gateway;
00042     GatewayParams* _gwparams;
00043     LightIndicator* _light;
00044 };
00045 
00046 }
00047 #endif /* MQTTSNGWBROKERSENDTASK_H_ */