NOTE: This mirror repository may be out of date, check the main repo for changes. If there are any remind me to update this mirror.
This is an unstable alpha of the Official Exosite library, there are known issues with the port to this platform. You probably shouldn't use this library yet if you just want to get things done.
This version uses CoAP for the application protocol.
Diff: examples/subscribe.c
- Revision:
- 9:394abe2083e8
- Parent:
- 3:1ea8c0eed00c
- Child:
- 11:08bae8fb9824
diff -r 8e5247e1ce0a -r 394abe2083e8 examples/subscribe.c --- a/examples/subscribe.c Mon Dec 22 10:27:33 2014 -0600 +++ b/examples/subscribe.c Mon Dec 22 13:35:49 2014 -0600 @@ -34,8 +34,8 @@ #include <string.h> #include <stdio.h> -#include <unistd.h> -#include <exosite.h> +#include <time.h> +#include "exosite.h" const char VENDOR[] = "patrick"; const char MODEL[] = "generic_test"; @@ -101,7 +101,7 @@ } } - usleep(100000); + nanosleep((struct timespec[]){{0, 500000000}}, NULL); loopcount++; } return 0;