Kconfig 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. menu "CoAP Configuration"
  2. choice COAP_MBEDTLS_ENCRYPTION_MODE
  3. prompt "CoAP Encryption method"
  4. default COAP_MBEDTLS_PSK
  5. help
  6. If the CoAP information is to be encrypted, the encryption environment
  7. can be set up in one of two ways (default being Pre-Shared key mode)
  8. - Encrypt using defined Pre-Shared Keys (PSK if uri includes coaps://)
  9. - Encrypt using defined Public Key Infrastructure (PKI if uri includes coaps://)
  10. config COAP_MBEDTLS_PSK
  11. bool "Pre-Shared Keys"
  12. config COAP_MBEDTLS_PKI
  13. bool "PKI Certificates"
  14. endchoice #COAP_MBEDTLS_ENCRYPTION_MODE
  15. config COAP_MBEDTLS_DEBUG
  16. bool "Enable CoAP debugging"
  17. default n
  18. help
  19. Enable CoAP debugging functions at compile time for the example code.
  20. If this option is enabled, call coap_set_log_level()
  21. at runtime in order to enable CoAP debug output via the ESP
  22. log mechanism.
  23. choice COAP_MBEDTLS_DEBUG_LEVEL
  24. bool "Set CoAP debugging level"
  25. depends on COAP_MBEDTLS_DEBUG
  26. default COAP_LOG_WARNING
  27. help
  28. Set CoAP debugging level
  29. config COAP_LOG_EMERG
  30. bool "Emergency"
  31. config COAP_LOG_ALERT
  32. bool "Alert"
  33. config COAP_LOG_CRIT
  34. bool "Critical"
  35. config COAP_LOG_ERROR
  36. bool "Error"
  37. config COAP_LOG_WARNING
  38. bool "Warning"
  39. config COAP_LOG_NOTICE
  40. bool "Notice"
  41. config COAP_LOG_INFO
  42. bool "Info"
  43. config COAP_LOG_DEBUG
  44. bool "Debug"
  45. endchoice
  46. config COAP_LOG_DEFAULT_LEVEL
  47. int
  48. default 0 if !COAP_MBEDTLS_DEBUG
  49. default 0 if COAP_LOG_EMERG
  50. default 1 if COAP_LOG_ALERT
  51. default 2 if COAP_LOG_CRIT
  52. default 3 if COAP_LOG_ERROR
  53. default 4 if COAP_LOG_WARNING
  54. default 5 if COAP_LOG_NOTICE
  55. default 6 if COAP_LOG_INFO
  56. default 7 if COAP_LOG_DEBUG
  57. endmenu