MYSQL节点
quickmsg   
# 功能说明
转发数据到mysql中,支持脚本
必须配置mysql source
# 设计参数
| 参数 | 说明 | 必传 | 默认值 | 
|---|---|---|---|
| ruleType | 规则节点类型 | 是 | DATA_BASE | 
| script | 脚本 | 是 | 无 | 
# yaml配置
rules: # 规则引擎相关配置
 - ruleName: 过滤
   chain: # 规则链
     - ruleType: DATA_BASE # MYSQL过滤器
       script: insert into device_msg (clientIdentifier,topic,qos,retain,msg) value ('${clientIdentifier}','${topic}','${qos}',${retain},'${msg}')
 1
2
3
4
5
2
3
4
5