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:


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

with-yp-coap configuration parameter to turn CoAP on or off.


--with-yp-coap=boolean
              If set to 'true', then the YP-CoAP  protocol  will  be  enabled.
              Otherwise, the YP-CoAP protocol will not be enabled.

              This protocol is NOT SECURE.  It SHOULD NOT be used

              unless privacy is provided by some other means.

              The default value is false.


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


user@system> netconfd-pro --with-yp-coap=true


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



#### leaf with-yp-coap
#
# If set to 'true', then the YP-CoAP protocol will be
# enabled. Otherwise, the YP-CoAP protocol
# will not be enabled.  This protocol is NOT SECURE.
# It SHOULD NOT be used unless privacy is provided
# by some other means.
#
# with-yp-coap false
#
with-yp-coap true


Related parameters: