The (alpha of the) official Exosite library, CoAP version.

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.

Committer:
Patrick Barrett
Date:
Wed Jan 07 14:20:56 2015 -0600
Revision:
29:004c318e63fa
Parent:
9:394abe2083e8
added retry on network error

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Patrick Barrett 6:7f0440121941 1 CC=gcc
Patrick Barrett 6:7f0440121941 2 IDIR=src
Patrick Barrett 6:7f0440121941 3 OPT:=-Wall -pedantic -std=c99 -g
Patrick Barrett 6:7f0440121941 4
Patrick Barrett 6:7f0440121941 5 all: test release
Patrick Barrett 6:7f0440121941 6
Patrick Barrett 0:c7393ae16c16 7 release: src/exosite.c
Patrick Barrett 0:c7393ae16c16 8 $(CC) $(OPT) -Os -c src/exosite.c \
Patrick Barrett 0:c7393ae16c16 9 -I./pal/template \
Patrick Barrett 0:c7393ae16c16 10 -I./picocoap/src \
Patrick Barrett 0:c7393ae16c16 11 ./picocoap/picocoap.o \
Patrick Barrett 0:c7393ae16c16 12 -o exosite.o
Patrick Barrett 6:7f0440121941 13
Patrick Barrett 0:c7393ae16c16 14 debug: src/exosite.c
Patrick Barrett 0:c7393ae16c16 15 $(CC) $(OPT) -c src/exosite.c -o exosite.o
Patrick Barrett 6:7f0440121941 16
Patrick Barrett 0:c7393ae16c16 17 test: tests/test.c src/exosite.h
Patrick Barrett 0:c7393ae16c16 18 $(CC) $(OPT) tests/test.c \
Patrick Barrett 0:c7393ae16c16 19 src/exosite.c \
Patrick Barrett 0:c7393ae16c16 20 pal/template/exosite_pal.c \
Patrick Barrett 0:c7393ae16c16 21 picocoap/picocoap.o \
Patrick Barrett 0:c7393ae16c16 22 -Ipal/template \
Patrick Barrett 0:c7393ae16c16 23 -Ipicocoap/src \
Patrick Barrett 0:c7393ae16c16 24 -o test
Patrick Barrett 6:7f0440121941 25 ./test
Patrick Barrett 6:7f0440121941 26 rm test
Patrick Barrett 6:7f0440121941 27
Patrick Barrett 0:c7393ae16c16 28 buildtest: tests/test.c src/exosite.h
Patrick Barrett 0:c7393ae16c16 29 $(CC) $(OPT) tests/test.c \
Patrick Barrett 0:c7393ae16c16 30 src/exosite.c \
Patrick Barrett 0:c7393ae16c16 31 pal/template/exosite_pal.c \
Patrick Barrett 0:c7393ae16c16 32 -Ipal/template \
Patrick Barrett 0:c7393ae16c16 33 -Ipicocoap/src \
Patrick Barrett 0:c7393ae16c16 34 -o test
Patrick Barrett 6:7f0440121941 35
Patrick Barrett 0:c7393ae16c16 36 posixclient:
Patrick Barrett 0:c7393ae16c16 37 $(CC) $(OPT) examples/polling_read_write.c \
Patrick Barrett 0:c7393ae16c16 38 src/exosite.c \
Patrick Barrett 0:c7393ae16c16 39 pal/posix/exosite_pal.c \
Patrick Barrett 0:c7393ae16c16 40 picocoap/picocoap.o \
Patrick Barrett 9:394abe2083e8 41 -D_POSIX_C_SOURCE=200112L \
Patrick Barrett 8:8e5247e1ce0a 42 -Isrc \
Patrick Barrett 8:8e5247e1ce0a 43 -Ipal/posix \
Patrick Barrett 8:8e5247e1ce0a 44 -Ipicocoap/src \
Patrick Barrett 0:c7393ae16c16 45 -o posixclient
Patrick Barrett 6:7f0440121941 46
Patrick Barrett 0:c7393ae16c16 47 posixsubscribe:
Patrick Barrett 0:c7393ae16c16 48 $(CC) $(OPT) examples/subscribe.c \
Patrick Barrett 0:c7393ae16c16 49 src/exosite.c \
Patrick Barrett 0:c7393ae16c16 50 pal/posix/exosite_pal.c \
Patrick Barrett 0:c7393ae16c16 51 picocoap/picocoap.o \
Patrick Barrett 9:394abe2083e8 52 -D_POSIX_C_SOURCE=200112L \
Patrick Barrett 8:8e5247e1ce0a 53 -Isrc \
Patrick Barrett 8:8e5247e1ce0a 54 -Ipal/posix \
Patrick Barrett 8:8e5247e1ce0a 55 -Ipicocoap/src \
Patrick Barrett 0:c7393ae16c16 56 -o posixsubscribe
Patrick Barrett 0:c7393ae16c16 57
Patrick Barrett 0:c7393ae16c16 58 #posixclientd: examples/posix/client_dtls.c src/coap.h
Patrick Barrett 0:c7393ae16c16 59 # $(CC) $(OPT) -D_POSIX_SOURCE examples/posix/client_dtls.c src/coap.c -o posixclientd
Patrick Barrett 6:7f0440121941 60
Patrick Barrett 6:7f0440121941 61 clean:
Patrick Barrett 6:7f0440121941 62 rm -f test
Patrick Barrett 6:7f0440121941 63 rm -f posixclient
Patrick Barrett 8:8e5247e1ce0a 64 rm -f posixsubscribe