Skip to content

Commit 54bfc3c

Browse files
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 <[email protected]>
1 parent 8f54ece commit 54bfc3c

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

samples/net/nats_clients/subscriber/src/Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@
1414
# limitations under the License.
1515
#
1616

17+
ccflags-y += -I${ZEPHYR_BASE}/net/ip/contiki
18+
ccflags-y += -I${ZEPHYR_BASE}/net/ip/contiki/os/lib
19+
ccflags-y += -I${ZEPHYR_BASE}/net/ip/contiki/os
20+
ccflags-y += -I${ZEPHYR_BASE}/net/ip
1721
ccflags-y += -I$(SOURCE_DIR)/../publisher/src
1822

19-
obj-y += main.o
2023
obj-y += ../../publisher/src/nats_pack.o
2124
obj-y += ../../publisher/src/nats_client.o
25+
obj-y += ../../publisher/src/netz.o
26+
obj-y += main.o

samples/net/nats_clients/subscriber/src/main.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
#include <stdio.h>
1919
#include <errno.h>
2020

21-
/* Network for Zephyr API - netz */
22-
#include <netz.h>
21+
#include "netz.h"
2322

2423
#include "nats_client.h"
2524

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[test]
2+
tags = net
3+
build_only = true
4+
arch_whitelist = x86
5+
platform_whitelist = galileo

0 commit comments

Comments
 (0)