mqtt specific components for the impact mbed endpoint library

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_mqtt_endpoint_nxp

Committer:
ansond
Date:
Thu Mar 27 17:48:38 2014 +0000
Revision:
5:1ba6e68bf50e
Child:
56:789a1a8c5ebe
updates

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ansond 5:1ba6e68bf50e 1 /* Copyright C2013 Doug Anson, MIT License
ansond 5:1ba6e68bf50e 2 *
ansond 5:1ba6e68bf50e 3 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
ansond 5:1ba6e68bf50e 4 * and associated documentation files the "Software", to deal in the Software without restriction,
ansond 5:1ba6e68bf50e 5 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
ansond 5:1ba6e68bf50e 6 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
ansond 5:1ba6e68bf50e 7 * furnished to do so, subject to the following conditions:
ansond 5:1ba6e68bf50e 8 *
ansond 5:1ba6e68bf50e 9 * The above copyright notice and this permission notice shall be included in all copies or
ansond 5:1ba6e68bf50e 10 * substantial portions of the Software.
ansond 5:1ba6e68bf50e 11 *
ansond 5:1ba6e68bf50e 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
ansond 5:1ba6e68bf50e 13 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
ansond 5:1ba6e68bf50e 14 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
ansond 5:1ba6e68bf50e 15 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
ansond 5:1ba6e68bf50e 16 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
ansond 5:1ba6e68bf50e 17 */
ansond 5:1ba6e68bf50e 18
ansond 5:1ba6e68bf50e 19 #ifndef _EMULATED_LIGHT_RESOURCE_FACTORY_H_
ansond 5:1ba6e68bf50e 20 #define _EMULATED_LIGHT_RESOURCE_FACTORY_H_
ansond 5:1ba6e68bf50e 21
ansond 5:1ba6e68bf50e 22 // Base Class
ansond 5:1ba6e68bf50e 23 #include "EmulatedResourceFactory.h"
ansond 5:1ba6e68bf50e 24
ansond 5:1ba6e68bf50e 25 class EmulatedLightResourceFactory : public EmulatedResourceFactory {
ansond 5:1ba6e68bf50e 26 private:
ansond 5:1ba6e68bf50e 27 char m_gps_coords[PREFERENCE_VALUE_LEN+1];
ansond 5:1ba6e68bf50e 28
ansond 5:1ba6e68bf50e 29 public:
ansond 5:1ba6e68bf50e 30 EmulatedLightResourceFactory(ErrorHandler *error_handler,void *endpoint);
ansond 5:1ba6e68bf50e 31 virtual ~EmulatedLightResourceFactory();
ansond 5:1ba6e68bf50e 32
ansond 5:1ba6e68bf50e 33 virtual void createResources(char *endpoint_name);
ansond 5:1ba6e68bf50e 34
ansond 5:1ba6e68bf50e 35 private:
ansond 5:1ba6e68bf50e 36 void initGPSCoords();
ansond 5:1ba6e68bf50e 37 char *getGPSCoords();
ansond 5:1ba6e68bf50e 38 };
ansond 5:1ba6e68bf50e 39
ansond 5:1ba6e68bf50e 40 #endif // _EMULATED_LIGHT_RESOURCE_FACTORY_H_