World Wide Data Logger using mbed.

Dependencies:   mbed ThermistorPack Pachube ConfigFile EthernetNetIf TextLCD SDFileSystem

Committer:
shintamainjp
Date:
Mon Apr 04 21:33:25 2011 +0000
Revision:
0:798c62ea70a3
Initial version.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
shintamainjp 0:798c62ea70a3 1 /**
shintamainjp 0:798c62ea70a3 2 * =============================================================================
shintamainjp 0:798c62ea70a3 3 * Application configuration for 'Expansion Board One' example no.2
shintamainjp 0:798c62ea70a3 4 * http://mbed.org/users/shintamainjp/notebook/starboard_expbrd-one_ex2_en/
shintamainjp 0:798c62ea70a3 5 * =============================================================================
shintamainjp 0:798c62ea70a3 6 * Copyright (c) 2010 Shinichiro Nakamura (CuBeatSystems)
shintamainjp 0:798c62ea70a3 7 *
shintamainjp 0:798c62ea70a3 8 * Permission is hereby granted, free of charge, to any person obtaining a copy
shintamainjp 0:798c62ea70a3 9 * of this software and associated documentation files (the "Software"), to deal
shintamainjp 0:798c62ea70a3 10 * in the Software without restriction, including without limitation the rights
shintamainjp 0:798c62ea70a3 11 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
shintamainjp 0:798c62ea70a3 12 * copies of the Software, and to permit persons to whom the Software is
shintamainjp 0:798c62ea70a3 13 * furnished to do so, subject to the following conditions:
shintamainjp 0:798c62ea70a3 14 *
shintamainjp 0:798c62ea70a3 15 * The above copyright notice and this permission notice shall be included in
shintamainjp 0:798c62ea70a3 16 * all copies or substantial portions of the Software.
shintamainjp 0:798c62ea70a3 17 *
shintamainjp 0:798c62ea70a3 18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
shintamainjp 0:798c62ea70a3 19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
shintamainjp 0:798c62ea70a3 20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
shintamainjp 0:798c62ea70a3 21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
shintamainjp 0:798c62ea70a3 22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
shintamainjp 0:798c62ea70a3 23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
shintamainjp 0:798c62ea70a3 24 * THE SOFTWARE.
shintamainjp 0:798c62ea70a3 25 * =============================================================================
shintamainjp 0:798c62ea70a3 26 */
shintamainjp 0:798c62ea70a3 27
shintamainjp 0:798c62ea70a3 28 typedef struct {
shintamainjp 0:798c62ea70a3 29 char apikey[256];
shintamainjp 0:798c62ea70a3 30 char feedid[128];
shintamainjp 0:798c62ea70a3 31 int interval;
shintamainjp 0:798c62ea70a3 32 } appconf_t;
shintamainjp 0:798c62ea70a3 33
shintamainjp 0:798c62ea70a3 34 /**
shintamainjp 0:798c62ea70a3 35 * Initialize configuration.
shintamainjp 0:798c62ea70a3 36 *
shintamainjp 0:798c62ea70a3 37 * @param p A pointer to a application config.
shintamainjp 0:798c62ea70a3 38 */
shintamainjp 0:798c62ea70a3 39 void appconf_init(appconf_t *p);
shintamainjp 0:798c62ea70a3 40
shintamainjp 0:798c62ea70a3 41 /**
shintamainjp 0:798c62ea70a3 42 * Read configuration.
shintamainjp 0:798c62ea70a3 43 *
shintamainjp 0:798c62ea70a3 44 * @param filename Filename.
shintamainjp 0:798c62ea70a3 45 * @param p A pointer to a application config.
shintamainjp 0:798c62ea70a3 46 * @return Return zero if it succeed.
shintamainjp 0:798c62ea70a3 47 */
shintamainjp 0:798c62ea70a3 48 int appconf_read(char *filename, appconf_t *p);
shintamainjp 0:798c62ea70a3 49
shintamainjp 0:798c62ea70a3 50 /**
shintamainjp 0:798c62ea70a3 51 * Write configuration.
shintamainjp 0:798c62ea70a3 52 *
shintamainjp 0:798c62ea70a3 53 * @param filename Filename.
shintamainjp 0:798c62ea70a3 54 * @param p A pointer to a application config.
shintamainjp 0:798c62ea70a3 55 * @return Return zero if it succeed.
shintamainjp 0:798c62ea70a3 56 */
shintamainjp 0:798c62ea70a3 57 int appconf_write(char *filename, appconf_t *p);