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.
thingspeak.h
00001 /* ************************************************************************** 00002 * 00003 * 00004 * 00005 * 00006 * ************************************************************************** 00007 * FileName: thingspeak.h 00008 * Dependencies: 00009 * Module: 00010 * Compiler: 00011 * 00012 * Author Rev. Date Comment 00013 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 00014 * Stefano Lai 1.0 03/27/2014 First release 00015 * 00016 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 00017 * 00018 * Software License Agreement 00019 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 00020 * This is free software; you can redistribute it and/or modify it under 00021 * the terms of the GNU General Public License (version 2) as published by 00022 * the Free Software Foundation AND MODIFIED BY OpenPicus team. 00023 * 00024 * ***NOTE*** The exception to the GPL is included to allow you to distribute 00025 * a combined work that includes OpenPicus code without being obliged to 00026 * provide the source code for proprietary components outside of the OpenPicus 00027 * code. 00028 * OpenPicus software is distributed in the hope that it will be useful, but 00029 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00030 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 00031 * more details. 00032 * 00033 * 00034 * Warranty 00035 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 00036 * THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT 00037 * WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT 00038 * LIMITATION, ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR A 00039 * PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL 00040 * WE ARE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT OR 00041 * CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF 00042 * PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY OR SERVICES, ANY CLAIMS 00043 * BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE 00044 * THEREOF), ANY CLAIMS FOR INDEMNITY OR CONTRIBUTION, OR OTHER 00045 * SIMILAR COSTS, WHETHER ASSERTED ON THE BASIS OF CONTRACT, TORT 00046 * (INCLUDING NEGLIGENCE), BREACH OF WARRANTY, OR OTHERWISE. 00047 * 00048 **************************************************************************/ 00049 #ifndef MBED_THINGSPEAK_H 00050 #define MBED_THINGSPEAK_H 00051 00052 #define TRUE 1 00053 #define FALSE 0 00054 #define IPThingSpeak "184.106.153.149" 00055 00056 class THINGSPEAK{ 00057 public: 00058 int wfTHINGSPEAK(char* writeapikey, float* value, int nvalue); 00059 int wiTHINGSPEAK(char* writeapikey, int* value, int nvalue); 00060 int thingHTTP(char* apikey, char* data); 00061 int thingTWEET(char* apikey, char* message); 00062 00063 private: 00064 }; 00065 #endif /*#define MBED_THINGSPEAK_H*/
Generated on Fri Jul 15 2022 10:25:59 by
