public enum TransferType extends Enum<TransferType>
数据传输类型
| 枚举常量和说明 |
|---|
COAP
CoAP nb-iot中的一种
|
HTTP
http
|
LORA
LoRa
|
LWM2M
lwm2m nb-iot 中的一种
|
MQTT
mqtt
|
NB_OPERATOR
运营商转发
|
OTHER |
TCP
tcp
|
UDP
udp
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
hasDataFormat(DataFormat dataFormat) |
static TransferType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static TransferType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final TransferType MQTT
public static final TransferType HTTP
public static final TransferType TCP
public static final TransferType UDP
public static final TransferType COAP
public static final TransferType LWM2M
public static final TransferType NB_OPERATOR
public static final TransferType OTHER
public static final TransferType LORA
public static TransferType[] values()
for (TransferType c : TransferType.values()) System.out.println(c);
public static TransferType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public boolean hasDataFormat(DataFormat dataFormat)
Copyright © 2023. All rights reserved.