Browse Source

TB-41: Implementation

pull/64/head
Andrew Shvayka 10 years ago
parent
commit
f5c7e53256
  1. 2
      transport/mqtt/src/main/java/org/thingsboard/server/transport/mqtt/session/GatewaySessionCtx.java

2
transport/mqtt/src/main/java/org/thingsboard/server/transport/mqtt/session/GatewaySessionCtx.java

@ -128,7 +128,7 @@ public class GatewaySessionCtx {
if (json.isJsonObject()) {
JsonObject jsonObj = json.getAsJsonObject();
String deviceName = checkDeviceConnected(jsonObj.get("device").getAsString());
Integer requestId = jsonObj.get("requestId").getAsInt();
Integer requestId = jsonObj.get("id").getAsInt();
String data = jsonObj.get("data").getAsString();
GatewayDeviceSessionCtx deviceSessionCtx = devices.get(deviceName);
processor.process(new BasicToDeviceActorSessionMsg(deviceSessionCtx.getDevice(),

Loading…
Cancel
Save