Commit 479e0356ad8ba534c9d1b64a51ee72aeb05b9e3f
1 parent
120029bb
reactor:【IoT 物联网】实现 alink 的 IotAlinkDeviceMessageCodec,并尝试接入 http 协议
Showing
1 changed file
with
2 additions
and
3 deletions
yudao-module-iot/yudao-module-iot-gateway/src/main/java/cn/iocoder/yudao/module/iot/gateway/protocol/http/IotHttpUpstreamProtocol.java
| ... | ... | @@ -36,11 +36,10 @@ public class IotHttpUpstreamProtocol extends AbstractVerticle { |
| 36 | 36 | router.route().handler(BodyHandler.create()); |
| 37 | 37 | |
| 38 | 38 | // 创建处理器,添加路由处理器 |
| 39 | - IotHttpUpstreamHandler upstreamHandler = new IotHttpUpstreamHandler(this); | |
| 40 | - router.post(IotHttpUpstreamHandler.PROPERTY_PATH).handler(upstreamHandler); | |
| 41 | - router.post(IotHttpUpstreamHandler.EVENT_PATH).handler(upstreamHandler); | |
| 42 | 39 | IotHttpAuthHandler authHandler = new IotHttpAuthHandler(this); |
| 43 | 40 | router.post(IotHttpAuthHandler.PATH).handler(authHandler); |
| 41 | + IotHttpUpstreamHandler upstreamHandler = new IotHttpUpstreamHandler(this); | |
| 42 | + router.post(IotHttpUpstreamHandler.PATH).handler(upstreamHandler); | |
| 44 | 43 | |
| 45 | 44 | // 启动 HTTP 服务器 |
| 46 | 45 | try { | ... | ... |