Config.mqtt 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. config MQTT_COMM_ENABLED
  2. bool "FEATURE_MQTT_COMM_ENABLED"
  3. default y
  4. select MQTT_PRE_AUTH if !MQTT_DIRECT
  5. select DEV_SIGN
  6. select INFRA_SHA256
  7. select INFRA_LIST
  8. select INFRA_TIMER
  9. select INFRA_REPORT
  10. select INFRA_COMPAT
  11. help
  12. Establish persistent connection with AliCloud via MQTT-based protocol
  13. Switching to "y" leads to building MQTT related implementation into SDK and MQTT_COMM_ENABLED included into CFLAGS
  14. Switching to "n" seldom happens unless you're connecting to AliCloud via CoAP/HTTP channel
  15. menu "MQTT Configurations"
  16. depends on MQTT_COMM_ENABLED
  17. config MQTT_DEFAULT_IMPL
  18. bool "FEATURE_MQTT_DEFAULT_IMPL"
  19. default y
  20. select INFRA_SHA256
  21. select INFRA_NET
  22. select INFRA_TIMER
  23. help
  24. Use SDK default MQTT implementation
  25. Switching to "y" leads to building MQTT related implementation into SDK and MQTT_DEFAULT_IMPL included into CFLAGS
  26. Switching to "n" seldom happens unless you're using other MQTT implementations
  27. config MQTT_PRE_AUTH
  28. bool
  29. default n
  30. select SUPPORT_TLS
  31. select INFRA_HTTPC
  32. select INFRA_PREAUTH
  33. config MQTT_DIRECT
  34. bool "FEATURE_MQTT_DIRECT"
  35. default y
  36. help
  37. Directly connect MQTT server without perform HTTP authenticate to another HTTP server ahead
  38. Switching to "y" leads to connect MQTT server directly and MQTT_DIRECT included into CFLAGS
  39. Switching to "n" leads to legacy authenticate mode: connnect HTTP server first, then connect MQTT server afterwards
  40. config ASYNC_PROTOCOL_STACK
  41. bool "FEATURE_ASYNC_PROTOCOL_STACK"
  42. default n
  43. help
  44. Use async protocol stack for SDK default MQTT implementation
  45. Switching to "y" leads to building MQTT async protocol stack related implementation into SDK and ASYNC_PROTOCOL_STACK included into CFLAGS
  46. Switching to "n" seldom happens unless you're not using async protocol stack
  47. endmenu