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:
parent
8f54ece6e6
commit
54bfc3cc63
3 changed files with 12 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
5
samples/net/nats_clients/subscriber/testcase.ini
Normal file
5
samples/net/nats_clients/subscriber/testcase.ini
Normal file
|
@ -0,0 +1,5 @@
|
|||
[test]
|
||||
tags = net
|
||||
build_only = true
|
||||
arch_whitelist = x86
|
||||
platform_whitelist = galileo
|
Loading…
Add table
Add a link
Reference in a new issue