Cesanta Software / freshen
Revision:
0:b21e585b3aa1
Child:
1:dd0e3cc2211a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/README.md	Tue Apr 10 06:50:09 2018 +0000
@@ -0,0 +1,36 @@
+# Freshen - device management framework
+
+See https://freshen.cc for the full description and documentation
+
+## Example mbedOS app
+
+```c
+
+#include "mbed.h"
+#include "EthernetInterface.h"
+
+#define FRESHEN_ENABLE_DASH
+#include "freshen.h"
+static struct freshen_ctx ctx;
+
+EthernetInterface net;
+DigitalOut myled(LED1);
+
+int main() {
+    net.connect();
+    freshen_net = &net;
+
+    while(1) {
+        const char *ip = net.get_ip_address();
+        printf("IP address is: %s\n", ip ? ip : "No IP");
+
+        myled = 1;
+        wait(0.5);
+        myled = 0;
+        wait(0.5);
+
+        freshen_poll_dash(&ctx, "1.2", "ACCESS_TOKEN");
+    }
+}
+
+```
\ No newline at end of file