Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
MQTTSNGWConnectionHandler.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 MQTTSNGWCONNECTIONHANDLER_H_ 00017 #define MQTTSNGWCONNECTIONHANDLER_H_ 00018 00019 #include "MQTTSNGateway.h" 00020 #include "MQTTSNGWPacket.h" 00021 00022 namespace MQTTSNGW 00023 { 00024 00025 class MQTTSNConnectionHandler 00026 { 00027 public: 00028 MQTTSNConnectionHandler(Gateway* gateway); 00029 ~MQTTSNConnectionHandler(); 00030 void sendADVERTISE(void); 00031 void handleSearchgw(MQTTSNPacket* packet); 00032 void handleConnect(Client* client, MQTTSNPacket* packet); 00033 void handleWilltopic(Client* client, MQTTSNPacket* packet); 00034 void handleWillmsg(Client* client, MQTTSNPacket* packet); 00035 void handleDisconnect(Client* client, MQTTSNPacket* packet); 00036 void handleWilltopicupd(Client* client, MQTTSNPacket* packet); 00037 void handleWillmsgupd(Client* client, MQTTSNPacket* packet); 00038 void handlePingreq(Client* client, MQTTSNPacket* packet); 00039 private: 00040 void sendStoredPublish(Client* client); 00041 00042 Gateway* _gateway; 00043 }; 00044 00045 } 00046 00047 #endif /* MQTTSNGWCONNECTIONHANDLER_H_ */
Generated on Wed Jul 13 2022 10:46:03 by
1.7.2