Skip to content

Commit

Permalink
Merge pull request eclipse-wakaama#342 from nefethael/fix-dtls-client…
Browse files Browse the repository at this point in the history
…-example

Fix DTLS connection for client example
  • Loading branch information
dnav committed Nov 24, 2017
2 parents fe48d45 + db1b4bf commit b48e36d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/client/lwm2mclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,11 @@ int main(int argc, char *argv[])

char serverUri[50];
int serverId = 123;
#ifdef WITH_TINYDTLS
sprintf (serverUri, "coaps://%s:%s", server, serverPort);
#else
sprintf (serverUri, "coap://%s:%s", server, serverPort);
#endif
#ifdef LWM2M_BOOTSTRAP
objArray[0] = get_security_object(serverId, serverUri, pskId, pskBuffer, pskLen, bootstrapRequested);
#else
Expand Down

0 comments on commit b48e36d

Please sign in to comment.