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.
Dependencies: EthernetInterface FXOS8700Q HTTPClient HTTPD MQTTS SDFileSystem YodiwoPlegma mbed-rpc mbed-rtos mbed wolfSSL
Diff: config.h
- Revision:
- 2:b7489c070d1f
- Child:
- 3:11b767300d32
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/config.h Fri Sep 04 08:41:34 2015 +0000
@@ -0,0 +1,33 @@
+#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__ */
\ No newline at end of file