Browse Source

Merge branch 'dev-V0.4.5' into dev-V0.4.5-postgre

jay 1 year ago
parent
commit
77eb944b70

+ 5 - 0
README.md

@@ -200,6 +200,11 @@ http://iotkit-open-source.gitee.io/document/
 ![输入图片说明](doc/ma.png) 
 
 
+#### 开源生态
+
+1. [mybatis-plus版数据服务](https://gitee.com/openiot/iotkit-parent-mybatis)(直接替换iot-data-serviceImpl-rdb就能从jpa切换成mybatis-plus)
+
+
 ### 项目规划
 
 见:《[开源项目管理](https://open-iita.feishu.cn/base/G4owbWqkbaoI0LsYVnWcreXVnnc)》

+ 1 - 1
iot-components/iot-nb-component/src/main/java/cc/iotkit/comp/nb/NBVerticle.java

@@ -215,7 +215,7 @@ public class NBVerticle extends AbstractVerticle {
             throw new BizException(ErrCode.SEND_DESTINATION_NOT_FOUND);
         }
         Future<Integer> result = endpoint.publish(topic, msg,
-                MqttQoS.AT_LEAST_ONCE, false, false);
+                MqttQoS.AT_MOST_ONCE, false, false);
         result.onFailure(e -> log.error("public topic failed", e));
         result.onSuccess(integer -> log.info("publish success,topic:{},payload:{}", topic, msg));
     }