first versione of ThingSpeak IOT library (not tested)

Committer:
mbedakhela
Date:
Fri Apr 04 13:44:43 2014 +0000
Revision:
0:92f5363c7790
first version of thingspeak IOT library; not tested

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbedakhela 0:92f5363c7790 1 /* **************************************************************************
mbedakhela 0:92f5363c7790 2 *
mbedakhela 0:92f5363c7790 3 *
mbedakhela 0:92f5363c7790 4 *
mbedakhela 0:92f5363c7790 5 *
mbedakhela 0:92f5363c7790 6 * **************************************************************************
mbedakhela 0:92f5363c7790 7 * FileName: parse.h
mbedakhela 0:92f5363c7790 8 * Dependencies:
mbedakhela 0:92f5363c7790 9 * Module:
mbedakhela 0:92f5363c7790 10 * Compiler:
mbedakhela 0:92f5363c7790 11 *
mbedakhela 0:92f5363c7790 12 * Author Rev. Date Comment
mbedakhela 0:92f5363c7790 13 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mbedakhela 0:92f5363c7790 14 * Stefano Lai 1.0 03/27/2014 First release
mbedakhela 0:92f5363c7790 15 *
mbedakhela 0:92f5363c7790 16 *
mbedakhela 0:92f5363c7790 17 *
mbedakhela 0:92f5363c7790 18 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mbedakhela 0:92f5363c7790 19 *
mbedakhela 0:92f5363c7790 20 * Software License Agreement
mbedakhela 0:92f5363c7790 21 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mbedakhela 0:92f5363c7790 22 * This is free software; you can redistribute it and/or modify it under
mbedakhela 0:92f5363c7790 23 * the terms of the GNU General Public License (version 2) as published by
mbedakhela 0:92f5363c7790 24 * the Free Software Foundation AND MODIFIED BY OpenPicus team.
mbedakhela 0:92f5363c7790 25 *
mbedakhela 0:92f5363c7790 26 * ***NOTE*** The exception to the GPL is included to allow you to distribute
mbedakhela 0:92f5363c7790 27 * a combined work that includes OpenPicus code without being obliged to
mbedakhela 0:92f5363c7790 28 * provide the source code for proprietary components outside of the OpenPicus
mbedakhela 0:92f5363c7790 29 * code.
mbedakhela 0:92f5363c7790 30 * OpenPicus software is distributed in the hope that it will be useful, but
mbedakhela 0:92f5363c7790 31 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
mbedakhela 0:92f5363c7790 32 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
mbedakhela 0:92f5363c7790 33 * more details.
mbedakhela 0:92f5363c7790 34 *
mbedakhela 0:92f5363c7790 35 *
mbedakhela 0:92f5363c7790 36 * Warranty
mbedakhela 0:92f5363c7790 37 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mbedakhela 0:92f5363c7790 38 * THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT
mbedakhela 0:92f5363c7790 39 * WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT
mbedakhela 0:92f5363c7790 40 * LIMITATION, ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR A
mbedakhela 0:92f5363c7790 41 * PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL
mbedakhela 0:92f5363c7790 42 * WE ARE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT OR
mbedakhela 0:92f5363c7790 43 * CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF
mbedakhela 0:92f5363c7790 44 * PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY OR SERVICES, ANY CLAIMS
mbedakhela 0:92f5363c7790 45 * BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE
mbedakhela 0:92f5363c7790 46 * THEREOF), ANY CLAIMS FOR INDEMNITY OR CONTRIBUTION, OR OTHER
mbedakhela 0:92f5363c7790 47 * SIMILAR COSTS, WHETHER ASSERTED ON THE BASIS OF CONTRACT, TORT
mbedakhela 0:92f5363c7790 48 * (INCLUDING NEGLIGENCE), BREACH OF WARRANTY, OR OTHERWISE.
mbedakhela 0:92f5363c7790 49 *
mbedakhela 0:92f5363c7790 50 **************************************************************************/
mbedakhela 0:92f5363c7790 51 #ifndef MBED_PARSE_H
mbedakhela 0:92f5363c7790 52 #define MBED_PARSE_H
mbedakhela 0:92f5363c7790 53
mbedakhela 0:92f5363c7790 54 #define BETWEEN "BETWEEN"
mbedakhela 0:92f5363c7790 55 #define BEFORE "BEFORE"
mbedakhela 0:92f5363c7790 56 #define AFTER "AFTER"
mbedakhela 0:92f5363c7790 57
mbedakhela 0:92f5363c7790 58 #define YES "YES"
mbedakhela 0:92f5363c7790 59 #define NO "NO"
mbedakhela 0:92f5363c7790 60
mbedakhela 0:92f5363c7790 61
mbedakhela 0:92f5363c7790 62 class PARSE{
mbedakhela 0:92f5363c7790 63 public:
mbedakhela 0:92f5363c7790 64 void dynamicPARSE(char *tab[][5], int rows);
mbedakhela 0:92f5363c7790 65 void HTTPdynamicPARSE(char host[], char command[], char *tab[][5], int rows, int snifftime);
mbedakhela 0:92f5363c7790 66 void multiPARSEbetween(char str[], char start[], char stop[], char *substr[], int multi);
mbedakhela 0:92f5363c7790 67 void PARSEafter(char str[], char start[], char substr[]);
mbedakhela 0:92f5363c7790 68 void PARSEbefore(char str[], char stop[], char substr[]);
mbedakhela 0:92f5363c7790 69 void PARSEbetween(char str[], char start[], char stop[], char substr[]);
mbedakhela 0:92f5363c7790 70
mbedakhela 0:92f5363c7790 71 private:
mbedakhela 0:92f5363c7790 72
mbedakhela 0:92f5363c7790 73 };
mbedakhela 0:92f5363c7790 74
mbedakhela 0:92f5363c7790 75 #endif /*#define MBED_PARSE_H*/