Kconfig 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. menuconfig AWS_IOT_SDK
  2. bool "Amazon Web Services IoT Platform"
  3. help
  4. Select this option to enable support for the AWS IoT platform,
  5. via the esp-idf component for the AWS IoT Device C SDK.
  6. config AWS_IOT_MQTT_HOST
  7. string "AWS IoT Endpoint Hostname"
  8. depends on AWS_IOT_SDK
  9. default ""
  10. help
  11. Default endpoint host name to connect to AWS IoT MQTT/S gateway
  12. This is the custom endpoint hostname and is specific to an AWS
  13. IoT account. You can find it by logging into your AWS IoT
  14. Console and clicking the Settings button. The endpoint hostname
  15. is shown under the "Custom Endpoint" heading on this page.
  16. If you need per-device hostnames for different regions or
  17. accounts, you can override the default hostname in your app.
  18. config AWS_IOT_MQTT_PORT
  19. int "AWS IoT MQTT Port"
  20. depends on AWS_IOT_SDK
  21. default 8883
  22. range 0 65535
  23. help
  24. Default port number to connect to AWS IoT MQTT/S gateway
  25. If you need per-device port numbers for different regions, you can
  26. override the default port number in your app.
  27. config AWS_IOT_MQTT_TX_BUF_LEN
  28. int "MQTT TX Buffer Length"
  29. depends on AWS_IOT_SDK
  30. default 512
  31. range 32 65536
  32. help
  33. Maximum MQTT transmit buffer size. This is the maximum MQTT
  34. message length (including protocol overhead) which can be sent.
  35. Sending longer messages will fail.
  36. config AWS_IOT_MQTT_RX_BUF_LEN
  37. int "MQTT RX Buffer Length"
  38. depends on AWS_IOT_SDK
  39. default 512
  40. range 32 65536
  41. help
  42. Maximum MQTT receive buffer size. This is the maximum MQTT
  43. message length (including protocol overhead) which can be
  44. received.
  45. Longer messages are dropped.
  46. config AWS_IOT_MQTT_NUM_SUBSCRIBE_HANDLERS
  47. int "Maximum MQTT Topic Filters"
  48. depends on AWS_IOT_SDK
  49. default 5
  50. range 1 100
  51. help
  52. Maximum number of concurrent MQTT topic filters.
  53. config AWS_IOT_MQTT_MIN_RECONNECT_WAIT_INTERVAL
  54. int "Auto reconnect initial interval (ms)"
  55. depends on AWS_IOT_SDK
  56. default 1000
  57. range 10 3600000
  58. help
  59. Initial delay before making first reconnect attempt, if the AWS IoT connection fails.
  60. Client will perform exponential backoff, starting from this value.
  61. config AWS_IOT_MQTT_MAX_RECONNECT_WAIT_INTERVAL
  62. int "Auto reconnect maximum interval (ms)"
  63. depends on AWS_IOT_SDK
  64. default 128000
  65. range 10 3600000
  66. help
  67. Maximum delay between reconnection attempts. If the exponentially increased delay
  68. interval reaches this value, the client will stop automatically attempting to reconnect.
  69. menu "Thing Shadow"
  70. depends on AWS_IOT_SDK
  71. config AWS_IOT_OVERRIDE_THING_SHADOW_RX_BUFFER
  72. bool "Override Shadow RX buffer size"
  73. depends on AWS_IOT_SDK
  74. default n
  75. help
  76. Allows setting a different Thing Shadow RX buffer
  77. size. This is the maximum size of a Thing Shadow
  78. message in bytes, plus one.
  79. If not overridden, the default value is the MQTT RX Buffer length plus one. If overriden, do not set
  80. higher than the default value.
  81. config AWS_IOT_SHADOW_MAX_SIZE_OF_RX_BUFFER
  82. int "Maximum RX Buffer (bytes)"
  83. depends on AWS_IOT_OVERRIDE_THING_SHADOW_RX_BUFFER
  84. default 513
  85. range 32 65536
  86. help
  87. Allows setting a different Thing Shadow RX buffer size.
  88. This is the maximum size of a Thing Shadow message in bytes,
  89. plus one.
  90. config AWS_IOT_SHADOW_MAX_SIZE_OF_UNIQUE_CLIENT_ID_BYTES
  91. int "Maximum unique client ID size (bytes)"
  92. depends on AWS_IOT_SDK
  93. default 80
  94. range 4 1000
  95. help
  96. Maximum size of the Unique Client Id.
  97. config AWS_IOT_SHADOW_MAX_SIMULTANEOUS_ACKS
  98. int "Maximum simultaneous responses"
  99. depends on AWS_IOT_SDK
  100. default 10
  101. range 1 100
  102. help
  103. At any given time we will wait for this many responses. This will correlate to the rate at which the
  104. shadow actions are requested
  105. config AWS_IOT_SHADOW_MAX_SIMULTANEOUS_THINGNAMES
  106. int "Maximum simultaneous Thing Name operations"
  107. depends on AWS_IOT_SDK
  108. default 10
  109. range 1 100
  110. help
  111. We could perform shadow action on any thing Name and this is maximum Thing Names we can act on at any
  112. given time
  113. config AWS_IOT_SHADOW_MAX_JSON_TOKEN_EXPECTED
  114. int "Maximum expected JSON tokens"
  115. depends on AWS_IOT_SDK
  116. default 120
  117. help
  118. These are the max tokens that is expected to be in the Shadow JSON document. Includes the metadata which
  119. is published
  120. config AWS_IOT_SHADOW_MAX_SHADOW_TOPIC_LENGTH_WITHOUT_THINGNAME
  121. int "Maximum topic length (not including Thing Name)"
  122. depends on AWS_IOT_SDK
  123. default 60
  124. range 10 1000
  125. help
  126. All shadow actions have to be published or subscribed to a topic which is of the format
  127. $aws/things/{thingName}/shadow/update/accepted. This refers to the size of the topic without the Thing
  128. Name
  129. config AWS_IOT_SHADOW_MAX_SIZE_OF_THING_NAME
  130. int "Maximum Thing Name length"
  131. depends on AWS_IOT_SDK
  132. default 20
  133. range 4 1000
  134. help
  135. Maximum length of a Thing Name.
  136. endmenu # Thing Shadow