ARM Technical Support Knowledge Articles

How to start Device Server to support CoAP over TCP

Applies to: mbed Device Server

Answer

The default Device Server starts with CoAP over UDP, as indicated in the runtime console logs in the following example:

./runDS.sh
Device Server Enterprise (starting..)
Version: 2.3.0-147-SNAPSHOT-06.01.2015
CoAP over UDP interface [listening on /0.0.0.0:5683].
HTTP interface [listening on /0.0.0.0:8080].
Admin-UI HTTPS interface [listening on /0.0.0.0:8081].
Started.

To enable the TCP interface:

1. Edit the COAP.TCP parameters in the deviceserver.properties file in the /conf directory, as shown in the following example:

##coap.tcp=true
## TCP port (default=5683)
##coap.tcp.port=5683
##coap.tcp.max-message-size=1024
##coap.tcp.idle-timeout=0

2. The following line in the runtime console shows the activated TCP interface:

CoAP over TCP interface [listening on /0:0:0:0:0:0:0:0:5683]

Article last edited on: 2015-02-25 10:56:59

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential