Customers who license YumaPro SDK source code can build YumaPro SDK

with support for The Constrained Application Protocol (CoAp) defined in IETF

RFC 7252 and updated in RFC 7959


The compiler flag WITH_COAP=1 must be present when building YumaPro SDK

if you wish to use CoAP. For example:


HTML

user@system> make EVERYTHING=1 DEBUG=1 DEBUG2=1 USE_WERROR=1 WITH_COAP=1
...
user@system> sudo make EVERYTHING=1 DEBUG=1 DEBUG2=1 USE_WERROR=1 WITH_COAP=1 install


After you have built YumaPro with the WITH_COAP=1 flag you can now use the

yp-coap-address configuration parameter to dictate which IP address will listen

for incoming YP-CoAp requests.


--yp-coap-address=ip-address
              The IP address that the YP-CoAP protocol will use to listen  for
              incoming  requests. This will also be used as the source address
              in YP-CoAP packets sent by the server. 

              The  type  is  inet:ip-address.  The default is "0.0.0.0".


The yp-coap-adress parameter can be invoked via the command line:


user@system> netconfd-pro --yp-coap-address="171.42.66.27"


or can be set in the configuration file for netconfd-pro (default location is /etc/yumapro/netconfd-pro.conf):


#### leaf yp-coap-address
#
# The IP address that the YP-CoAP protocol will use to listen
# for incoming requests. This will also be used as the source
# address in YP-CoAP packets sent by the server.
#   type inet:ip-address
#
# yp-coap-address "0.0.0.0"
#
yp-coap-address "171.42.66.27"


Related parameters: