mqtt_source.json 6.4 KB

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