@Deprecated public class JetLinksMqttDeviceMessageCodec extends Object implements DeviceMessageCodec
下行Topic:
读取设备属性: /{productId}/{deviceId}/properties/read
修改设备属性: /{productId}/{deviceId}/properties/write
调用设备功能: /{productId}/{deviceId}/function/invoke
//网关设备
读取子设备属性: /{productId}/{deviceId}/child/{childDeviceId}/properties/read
修改子设备属性: /{productId}/{deviceId}/child/{childDeviceId}/properties/write
调用子设备功能: /{productId}/{deviceId}/child/{childDeviceId}/function/invoke
上行Topic:
读取属性回复: /{productId}/{deviceId}/properties/read/reply
修改属性回复: /{productId}/{deviceId}/properties/write/reply
调用设备功能: /{productId}/{deviceId}/function/invoke/reply
上报设备事件: /{productId}/{deviceId}/event/{eventId}
上报设备属性: /{productId}/{deviceId}/properties/report
上报设备派生元数据: /{productId}/{deviceId}/metadata/derived
//网关设备
子设备上线消息: /{productId}/{deviceId}/child/{childDeviceId}/connected
子设备下线消息: /{productId}/{deviceId}/child/{childDeviceId}/disconnected
读取子设备属性回复: /{productId}/{deviceId}/child/{childDeviceId}/properties/read/reply
修改子设备属性回复: /{productId}/{deviceId}/child/{childDeviceId}/properties/write/reply
调用子设备功能回复: /{productId}/{deviceId}/child/{childDeviceId}/function/invoke/reply
上报子设备事件: /{productId}/{deviceId}/child/{childDeviceId}/event/{eventId}
上报子设备派生元数据: /{productId}/{deviceId}/child/{childDeviceId}/metadata/derived
基于jet links 的消息编解码器| 构造器和说明 |
|---|
JetLinksMqttDeviceMessageCodec()
已过时。
|
JetLinksMqttDeviceMessageCodec(Transport transport)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
reactor.core.publisher.Mono<Message> |
decode(MessageDecodeContext context)
已过时。
|
protected org.jetlinks.supports.official.JetlinksTopicMessageCodec.DecodeResult |
decode(String topic,
com.alibaba.fastjson.JSONObject object)
已过时。
|
reactor.core.publisher.Mono<MqttMessage> |
encode(MessageEncodeContext context)
已过时。
|
protected org.jetlinks.supports.official.JetlinksTopicMessageCodec.EncodedTopic |
encode(String deviceId,
Message message)
已过时。
|
Transport |
getSupportTransport()
已过时。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescriptionpublic JetLinksMqttDeviceMessageCodec(Transport transport)
public JetLinksMqttDeviceMessageCodec()
public Transport getSupportTransport()
getSupportTransport 在接口中 DeviceMessageCodec@Nonnull public reactor.core.publisher.Mono<MqttMessage> encode(@Nonnull MessageEncodeContext context)
encode 在接口中 DeviceMessageEncoder@Nonnull public reactor.core.publisher.Mono<Message> decode(@Nonnull MessageDecodeContext context)
decode 在接口中 DeviceMessageDecoderprotected org.jetlinks.supports.official.JetlinksTopicMessageCodec.EncodedTopic encode(String deviceId, Message message)
protected org.jetlinks.supports.official.JetlinksTopicMessageCodec.DecodeResult decode(String topic, com.alibaba.fastjson.JSONObject object)
Copyright © 2019–2023. All rights reserved.