Kconfig 2.1 KB

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