Commit 6991a2dea492e2beed9cfb306255629af9d1f102
1 parent
b270d82d
fix:【iot】coap 协议接入:testEventPost 单测的数据格式不正确
Showing
1 changed file
with
7 additions
and
4 deletions
yudao-module-iot/yudao-module-iot-gateway/src/test/java/cn/iocoder/yudao/module/iot/gateway/protocol/coap/IotCoapProtocolIntegrationTest.java
| @@ -135,11 +135,14 @@ public class IotCoapProtocolIntegrationTest { | @@ -135,11 +135,14 @@ public class IotCoapProtocolIntegrationTest { | ||
| 135 | .put("id", IdUtil.fastSimpleUUID()) | 135 | .put("id", IdUtil.fastSimpleUUID()) |
| 136 | .put("method", IotDeviceMessageMethodEnum.EVENT_POST.getMethod()) | 136 | .put("method", IotDeviceMessageMethodEnum.EVENT_POST.getMethod()) |
| 137 | .put("version", "1.0") | 137 | .put("version", "1.0") |
| 138 | - .put("identifier", "eat") | ||
| 139 | .put("params", MapUtil.builder() | 138 | .put("params", MapUtil.builder() |
| 140 | - .put("width", 1) | ||
| 141 | - .put("height", "2") | ||
| 142 | - .put("oneThree", "3") | 139 | + .put("identifier", "eat") |
| 140 | + .put("value", MapUtil.builder() | ||
| 141 | + .put("width", 1) | ||
| 142 | + .put("height", "2") | ||
| 143 | + .put("oneThree", "3") | ||
| 144 | + .build()) | ||
| 145 | + .put("time", System.currentTimeMillis()) | ||
| 143 | .build()) | 146 | .build()) |
| 144 | .build()); | 147 | .build()); |
| 145 | 148 |