Example node for Yodiwo's Plegma API

Dependencies:   EthernetInterface FXOS8700Q HTTPClient HTTPD MQTTS SDFileSystem YodiwoPlegma mbed-rpc mbed-rtos mbed wolfSSL

config.h

Committer:
mitsarionas
Date:
2015-09-04
Revision:
2:b7489c070d1f
Child:
3:11b767300d32

File content as of revision 2:b7489c070d1f:

#ifndef __CONFIG_H__
#define __CONFIG_H__

#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>
#include <stdlib.h>
#include "yodiwo_helpers.h"

typedef struct
{
    char    *uuid;
    char    *name;
    char    *nodeKey;
    char    *nodeSecret;
    char    *pairingServerUrl;
    char    *ypchannelServer;
    int32_t  ypchannelServerPort;
    int32_t  webPort;
    char    *mqttBrokerHostname;
} config_t;


int read_config(config_t *config, char *filename);
int write_config(config_t *config, char *filename);

#ifdef __cplusplus
}
#endif

#endif /* __CONFIG_H__ */