first versione of ThingSpeak IOT library (not tested)
parse.h
- Committer:
- mbedakhela
- Date:
- 2014-04-04
- Revision:
- 0:92f5363c7790
File content as of revision 0:92f5363c7790:
/* ************************************************************************** * * * * * ************************************************************************** * FileName: parse.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_PARSE_H #define MBED_PARSE_H #define BETWEEN "BETWEEN" #define BEFORE "BEFORE" #define AFTER "AFTER" #define YES "YES" #define NO "NO" class PARSE{ public: void dynamicPARSE(char *tab[][5], int rows); void HTTPdynamicPARSE(char host[], char command[], char *tab[][5], int rows, int snifftime); void multiPARSEbetween(char str[], char start[], char stop[], char *substr[], int multi); void PARSEafter(char str[], char start[], char substr[]); void PARSEbefore(char str[], char stop[], char substr[]); void PARSEbetween(char str[], char start[], char stop[], char substr[]); private: }; #endif /*#define MBED_PARSE_H*/