samples/net: Add network-related functions to NATS Subscriber

- Add TCP/IPv4 routines to this sample.
- Add a testcase.ini file.

This NATS sample code demonstrates how to implement a NATS subscriber
application.

Change-Id: I25a7465b7163a09a0163859076a97b1e258a06f1
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
This commit is contained in:
Flavio Santes 2016-08-01 14:29:58 -05:00
commit 54bfc3cc63
3 changed files with 12 additions and 3 deletions

View file

@ -14,8 +14,13 @@
# limitations under the License.
#
ccflags-y += -I${ZEPHYR_BASE}/net/ip/contiki
ccflags-y += -I${ZEPHYR_BASE}/net/ip/contiki/os/lib
ccflags-y += -I${ZEPHYR_BASE}/net/ip/contiki/os
ccflags-y += -I${ZEPHYR_BASE}/net/ip
ccflags-y += -I$(SOURCE_DIR)/../publisher/src
obj-y += main.o
obj-y += ../../publisher/src/nats_pack.o
obj-y += ../../publisher/src/nats_client.o
obj-y += ../../publisher/src/netz.o
obj-y += main.o

View file

@ -18,8 +18,7 @@
#include <stdio.h>
#include <errno.h>
/* Network for Zephyr API - netz */
#include <netz.h>
#include "netz.h"
#include "nats_client.h"

View file

@ -0,0 +1,5 @@
[test]
tags = net
build_only = true
arch_whitelist = x86
platform_whitelist = galileo