public final class TcpDeviceSession extends Object
设备连接Session会在设备连接泛协议接入SDK后建立,设备与设备Session一对一映射
| 限定符和类型 | 类和说明 |
|---|---|
static class |
TcpDeviceSession.Builder |
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.channel.Channel |
getChannel() |
String |
getDeviceName() |
String |
getProductId() |
static TcpDeviceSession.Builder |
newBuilder() |
void |
setChannel(io.netty.channel.Channel channel) |
void |
setDeviceName(String deviceName) |
void |
setProductId(String productId) |
public static TcpDeviceSession.Builder newBuilder()
public String getProductId()
public void setProductId(String productId)
public String getDeviceName()
public void setDeviceName(String deviceName)
public io.netty.channel.Channel getChannel()
public void setChannel(io.netty.channel.Channel channel)
Copyright © 2020. All rights reserved.