first versione of ThingSpeak IOT library (not tested)
Diff: thingspeak.h
- Revision:
- 0:92f5363c7790
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/thingspeak.h Fri Apr 04 13:44:43 2014 +0000 @@ -0,0 +1,65 @@ +/* ************************************************************************** + * + * + * + * + * ************************************************************************** + * FileName: thingspeak.h + * Dependencies: + * Module: + * Compiler: + * + * Author Rev. Date Comment + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + * Stefano Lai 1.0 03/27/2014 First release + * + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + * + * Software License Agreement + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + * This is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License (version 2) as published by + * the Free Software Foundation AND MODIFIED BY OpenPicus team. + * + * ***NOTE*** The exception to the GPL is included to allow you to distribute + * a combined work that includes OpenPicus code without being obliged to + * provide the source code for proprietary components outside of the OpenPicus + * code. + * OpenPicus software is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * + * Warranty + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + * THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT + * WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT + * LIMITATION, ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR A + * PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL + * WE ARE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT OR + * CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF + * PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY OR SERVICES, ANY CLAIMS + * BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE + * THEREOF), ANY CLAIMS FOR INDEMNITY OR CONTRIBUTION, OR OTHER + * SIMILAR COSTS, WHETHER ASSERTED ON THE BASIS OF CONTRACT, TORT + * (INCLUDING NEGLIGENCE), BREACH OF WARRANTY, OR OTHERWISE. + * + **************************************************************************/ +#ifndef MBED_THINGSPEAK_H +#define MBED_THINGSPEAK_H + +#define TRUE 1 +#define FALSE 0 +#define IPThingSpeak "184.106.153.149" + +class THINGSPEAK{ +public: + int wfTHINGSPEAK(char* writeapikey, float* value, int nvalue); + int wiTHINGSPEAK(char* writeapikey, int* value, int nvalue); + int thingHTTP(char* apikey, char* data); + int thingTWEET(char* apikey, char* message); + +private: +}; +#endif /*#define MBED_THINGSPEAK_H*/ \ No newline at end of file