mqtt_source.json 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. {
  2. "about": {
  3. "trial": false,
  4. "author": {
  5. "name": "EMQ",
  6. "email": "contact@emqx.io",
  7. "company": "EMQ Technologies Co., Ltd",
  8. "website": "https://www.emqx.io"
  9. },
  10. "helpUrl": {
  11. "en_US": "https://ekuiper.org/docs/en/latest/guide/sources/builtin/mqtt.html",
  12. "zh_CN": "https://ekuiper.org/docs/zh/latest/guide/sources/builtin/mqtt.html"
  13. },
  14. "description": {
  15. "en_US": "eKuiper provides built-in support for MQTT source stream, which can subscribe the message from MQTT broker and feed into the eKuiper processing pipeline.",
  16. "zh_CN": "eKuiper 为 MQTT 源流提供了内置支持,流可以订阅来自 MQTT 代理的消息并输入 eKuiper 处理管道。"
  17. }
  18. },
  19. "libs": [],
  20. "dataSource": {
  21. "default": "topic1",
  22. "hint": {
  23. "en_US": "The MQTT topic to subscribe to, e.g. topic1",
  24. "zh_CN": "将要订阅的 MQTT 主题, 例如 topic1"
  25. },
  26. "label": {
  27. "en_US": "Data Source (MQTT Topic)",
  28. "zh_CN": "数据源(MQTT 主题)"
  29. }
  30. },
  31. "properties": {
  32. "default": [{
  33. "name": "connectionSelector",
  34. "default": "",
  35. "optional": true,
  36. "control": "select",
  37. "type": "string",
  38. "values": [],
  39. "hint": {
  40. "en_US": "specify the source to reuse the connection defined in connection configuration.",
  41. "zh_CN": "此数据源复用 connection 中定义的连接"
  42. },
  43. "label": {
  44. "en_US": "Connection selector",
  45. "zh_CN": "复用连接信息"
  46. }
  47. }, {
  48. "name": "server",
  49. "default": "tcp://127.0.0.1:1883",
  50. "optional": true,
  51. "connection_related": true,
  52. "control": "text",
  53. "type": "string",
  54. "hint": {
  55. "en_US": "The server for MQTT message broker.",
  56. "zh_CN": "MQTT 消息代理的服务器。"
  57. },
  58. "label": {
  59. "en_US": "Server Address",
  60. "zh_CN": "服务器地址"
  61. }
  62. }, {
  63. "name": "username",
  64. "default": "",
  65. "optional": true,
  66. "connection_related": true,
  67. "control": "text",
  68. "type": "string",
  69. "hint": {
  70. "en_US": "The username for MQTT connection.",
  71. "zh_CN": "MQTT 连接用户名。"
  72. },
  73. "label": {
  74. "en_US": "Username",
  75. "zh_CN": "用户名"
  76. }
  77. }, {
  78. "name": "password",
  79. "default": "",
  80. "optional": true,
  81. "connection_related": true,
  82. "control": "text",
  83. "type": "string",
  84. "hint": {
  85. "en_US": "The password for MQTT connection.",
  86. "zh_CN": "MQTT 连接密码。"
  87. },
  88. "label": {
  89. "en_US": "Password",
  90. "zh_CN": "密码"
  91. }
  92. }, {
  93. "name": "protocolVersion",
  94. "default": "3.1.1",
  95. "optional": true,
  96. "connection_related": true,
  97. "control": "select",
  98. "values": [
  99. "3.1",
  100. "3.1.1"
  101. ],
  102. "type": "string",
  103. "hint": {
  104. "en_US": "MQTT protocol version. 3.1 (also refer as MQTT 3) or 3.1.1 (also refer as MQTT 4). If not specified, the default value is 3.1.",
  105. "zh_CN": "MQTT 协议版本。3.1 (也被称为 MQTT 3) 或者 3.1.1 (也被称为 MQTT 4)。 如果未指定,缺省值为 3.1。 "
  106. },
  107. "label": {
  108. "en_US": "MQTT Protocol Version",
  109. "zh_CN": "MQTT 协议版本"
  110. }
  111. }, {
  112. "name": "clientid",
  113. "default": "",
  114. "optional": true,
  115. "connection_related": true,
  116. "control": "text",
  117. "type": "string",
  118. "hint": {
  119. "en_US": "The client id for MQTT connection. If not specified, an uuid will be used.",
  120. "zh_CN": "MQTT 连接的客户端 ID。 如果未指定,将使用一个 uuid。"
  121. },
  122. "label": {
  123. "en_US": "MQTT Client ID",
  124. "zh_CN": "客户端 ID"
  125. }
  126. }, {
  127. "name": "qos",
  128. "default": 1,
  129. "optional": true,
  130. "control": "select",
  131. "type": "int",
  132. "values": [0, 1, 2],
  133. "hint": {
  134. "en_US": "The default subscription QoS level.",
  135. "zh_CN": "默认订阅 QoS 级别"
  136. },
  137. "label": {
  138. "en_US": "Qos level",
  139. "zh_CN": "QoS 级别"
  140. }
  141. }, {
  142. "name": "certificationPath",
  143. "default": "",
  144. "optional": true,
  145. "connection_related": true,
  146. "control": "text",
  147. "type": "string",
  148. "hint": {
  149. "en_US": "The location of certification path. It can be an absolute path, or a relative path.",
  150. "zh_CN": "证书路径。可以为绝对路径,也可以为相对路径。如果指定的是相对路径,那么父目录为执行 server 命令的路径。"
  151. },
  152. "label": {
  153. "en_US": "Certification path",
  154. "zh_CN": "证书路径"
  155. }
  156. }, {
  157. "name": "privateKeyPath",
  158. "default": "",
  159. "optional": true,
  160. "connection_related": true,
  161. "control": "text",
  162. "type": "string",
  163. "hint": {
  164. "en_US": "The location of private key path. It can be an absolute path, or a relative path. ",
  165. "zh_CN": "私钥路径。可以为绝对路径,也可以为相对路径。"
  166. },
  167. "label": {
  168. "en_US": "Private key path",
  169. "zh_CN": "私钥路径"
  170. }
  171. }, {
  172. "name": "rootCaPath",
  173. "default": "",
  174. "optional": true,
  175. "connection_related": true,
  176. "control": "text",
  177. "type": "string",
  178. "hint": {
  179. "en_US": "The location of root ca path. It can be an absolute path, or a relative path. ",
  180. "zh_CN": "根证书路径,用以验证服务器证书。可以为绝对路径,也可以为相对路径。"
  181. },
  182. "label": {
  183. "en_US": "Root CA path",
  184. "zh_CN": "根证书路径"
  185. }
  186. }, {
  187. "name": "insecureSkipVerify",
  188. "default": false,
  189. "optional": true,
  190. "connection_related": true,
  191. "control": "radio",
  192. "type": "bool",
  193. "hint": {
  194. "en_US": "Control if to skip the certification verification. If it is set to true, then skip certification verification; Otherwise, verify the certification.",
  195. "zh_CN": "控制是否跳过证书认证。如果被设置为 true,那么跳过证书认证;否则进行证书验证。"
  196. },
  197. "label": {
  198. "en_US": "Skip Certification verification",
  199. "zh_CN": "跳过证书验证"
  200. }
  201. }, {
  202. "name": "kubeedgeVersion",
  203. "default": "",
  204. "optional": true,
  205. "control": "text",
  206. "type": "string",
  207. "hint": {
  208. "en_US": "Kubeedge version number. Different version numbers correspond to different file contents.",
  209. "zh_CN": "Kubeedge 版本号,不同的版本号对应的文件内容不同"
  210. },
  211. "label": {
  212. "en_US": "Kubeedge version",
  213. "zh_CN": "Kubeedge 版本号"
  214. }
  215. }, {
  216. "name": "kubeedgeModelFile",
  217. "default": "",
  218. "optional": true,
  219. "control": "text",
  220. "type": "string",
  221. "hint": {
  222. "en_US": "The name of KubeEdge template file. The file is located in the specified etc/sources folder.",
  223. "zh_CN": "KubeEdge 模版文件名,文件指定放在 etc/sources 文件夹中"
  224. },
  225. "label": {
  226. "en_US": "KubeEdge model file",
  227. "zh_CN": "KubeEdge 模型文件"
  228. }
  229. }]
  230. },
  231. "outputs": [
  232. {
  233. "label": {
  234. "en_US": "Output",
  235. "zh_CN": "输出"
  236. },
  237. "value": "signal"
  238. }
  239. ],
  240. "node": {
  241. "category": "source",
  242. "icon": "iconPath",
  243. "label": {
  244. "en_US": "MQTT",
  245. "zh_CN": "MQTT"
  246. }
  247. }
  248. }