summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@intel.com>2016-09-28 17:34:15 -0300
committerAnas Nashif <nashif@linux.intel.com>2016-10-01 01:11:26 +0000
commit76e81874f0e40acf1a0a73b838789b7edc364250 (patch)
tree259ee9da4fd909feda4617a60c627fa217758502 /samples
parent08e0e86bb0d14fe19848212cde43cca55e51a558 (diff)
samples/zoap_client: Make it work with zoap-server
The path and port used by zoap-client were different than the ones used by zoap-server. Even if they are different applications, for consistency, it makes sense for them both to be able to talk to each other. Change-Id: I883d59c77bc3800b4f0965ba7bcf96a08e545d29 Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Diffstat (limited to 'samples')
-rw-r--r--samples/net/zoap_client/src/zoap-client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/net/zoap_client/src/zoap-client.c b/samples/net/zoap_client/src/zoap-client.c
index 3858caf01..45cff8ba0 100644
--- a/samples/net/zoap_client/src/zoap-client.c
+++ b/samples/net/zoap_client/src/zoap-client.c
@@ -28,7 +28,7 @@
#include <zoap.h>
-#define MY_COAP_PORT 9998
+#define MY_COAP_PORT 5683
#define STACKSIZE 2000
@@ -46,7 +46,7 @@ struct zoap_pending pendings[NUM_PENDINGS];
struct zoap_reply replies[NUM_REPLIES];
struct nano_delayed_work retransmit_work;
-static const char * const a_light_path[] = { "a", "light", NULL };
+static const char * const test_path[] = { "test", NULL };
static void msg_dump(const char *s, uint8_t *data, unsigned len)
{
@@ -197,7 +197,7 @@ void main(void)
return;
}
- for (p = a_light_path; p && *p; p++) {
+ for (p = test_path; p && *p; p++) {
r = zoap_add_option(&request, ZOAP_OPTION_URI_PATH,
*p, strlen(*p));
if (r < 0) {