Skip to content

终端模版 API ​

本页列出当前版本的完整方法及字段。方法通过 gRPC / gRPC-Web 调用;REST 注解不表示已部署 REST Gateway。

“必填:按业务校验”表示 proto3 未声明 required,不代表留空一定可用。UUID、EUI、权限、资源存在性与字段组合由服务端校验。嵌套结构详见页末消息结构。

调用方式、鉴权与错误处理

DeviceProfileService ​

Create ​

接口名称: api.DeviceProfileService/Create

功能: 创建 对应资源。Create the given device-profile.

请求: api.CreateDeviceProfileRequest;返回: api.CreateDeviceProfileResponse(单次响应)。

请求参数 ​

名称类型必填说明
device_profileapi.DeviceProfile按业务校验终端模版对象。 Object to create.

返回值 ​

名称类型必填说明
idstring按业务校验资源 ID。 ID (UUID).

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

Get ​

接口名称: api.DeviceProfileService/Get

功能: 查询 对应资源。Get the device-profile for the given ID.

请求: api.GetDeviceProfileRequest;返回: api.GetDeviceProfileResponse(单次响应)。

请求参数 ​

名称类型必填说明
idstring按业务校验资源 ID。 ID (UUID).

返回值 ​

名称类型必填说明
device_profileapi.DeviceProfile按业务校验终端模版对象。 Device-profile object.
created_atgoogle.protobuf.Timestamp按业务校验创建时间。 Created at timestamp.
updated_atgoogle.protobuf.Timestamp按业务校验最后更新时间。 Last update timestamp.

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

GetByProfileId ​

接口名称: api.DeviceProfileService/GetByProfileId

功能: 查询 ByProfileId。GetByProfileId tries to get the device-profile for the given ProfileID (see TR0005).

请求: api.GetDeviceProfileByProfileIdRequest;返回: api.GetDeviceProfileByProfileIdResponse(单次响应)。

请求参数 ​

名称类型必填说明
vendor_iduint32按业务校验Vendor ID.
vendor_profile_iduint32按业务校验Vendor Profile ID.

返回值 ​

名称类型必填说明
device_profileapi.DeviceProfile按业务校验终端模版对象。 Device-profile object.
created_atgoogle.protobuf.Timestamp按业务校验创建时间。 Created at timestamp.
updated_atgoogle.protobuf.Timestamp按业务校验最后更新时间。 Last update timestamp.

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

Update ​

接口名称: api.DeviceProfileService/Update

功能: 更新 对应资源。Update the given device-profile.

请求: api.UpdateDeviceProfileRequest;返回: google.protobuf.Empty(单次响应)。

请求参数 ​

名称类型必填说明
device_profileapi.DeviceProfile按业务校验终端模版对象。 Device-profile object.

返回值 ​

无字段。

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

Delete ​

接口名称: api.DeviceProfileService/Delete

功能: 删除 对应资源。Delete the device-profile with the given ID.

请求: api.DeleteDeviceProfileRequest;返回: google.protobuf.Empty(单次响应)。

请求参数 ​

名称类型必填说明
idstring按业务校验资源 ID。 ID (UUID).

返回值 ​

无字段。

操作影响

此方法会删除、清空或重置对应资源/状态。调用前核对目标 ID;请勿通过重试重复执行有副作用的操作。

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

List ​

接口名称: api.DeviceProfileService/List

功能: 列出 对应资源。List the available device-profiles.

请求: api.ListDeviceProfilesRequest;返回: api.ListDeviceProfilesResponse(单次响应)。

请求参数 ​

名称类型必填说明
limituint32按业务校验本次最多返回条数。 Max number of device-profiles to return in the result-set. If not set, it will be treated as 0, and the response will only return the total_count.
offsetuint32按业务校验分页起始偏移。 Offset in the result-set (for pagination).
searchstring按业务校验搜索关键字。 If set, the given string will be used to search on name.
tenant_idstring按业务校验租户 UUID。 Tenant ID to list the device-profiles for. This value must be set, unless global_only is set to true. The result will be the list of device-profiles matching the tenant_id and global tenants. If you only wish to list the device-profiles matching the tenant_id, you must set tenant_only to true.
device_idstring按业务校验Device-profile device ID. Note that his is the device-profile ID, not the DevEUI. This value requires global_only to be set to true.
global_onlybool按业务校验Only list global (non-tenant) device-profiles.
tenant_onlybool按业务校验Only list device-profiles matching the tenant_id.

返回值 ​

名称类型必填说明
total_countuint32按业务校验符合条件的总条数。 Total number of device-profiles.
resultrepeated api.DeviceProfileListItem按业务校验结果列表或结果内容。 Result-set.

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

ListVendors ​

接口名称: api.DeviceProfileService/ListVendors

功能: 列出 Vendors。List the available device-profile vendors.

请求: api.ListDeviceProfileVendorsRequest;返回: api.ListDeviceProfileVendorsResponse(单次响应)。

请求参数 ​

名称类型必填说明
limituint32按业务校验本次最多返回条数。 Max number of device-profile vendors to return in the result-set. If not set, it will be treated as 0, and the response will only return the total_count.
offsetuint32按业务校验分页起始偏移。 Offset in the result-set (for pagination).

返回值 ​

名称类型必填说明
total_countuint32按业务校验符合条件的总条数。 Total number of vendors.
resultrepeated api.DeviceProfileVendorListItem按业务校验结果列表或结果内容。 Result-set.

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

GetVendor ​

接口名称: api.DeviceProfileService/GetVendor

功能: 查询 Vendor。Get the device-profile vendor.

请求: api.GetDeviceProfileVendorRequest;返回: api.GetDeviceProfileVendorResponse(单次响应)。

请求参数 ​

名称类型必填说明
idstring按业务校验资源 ID。 Vendor ID (UUID).

返回值 ​

名称类型必填说明
vendorapi.DeviceProfileVendor按业务校验Vendor object.
created_atgoogle.protobuf.Timestamp按业务校验创建时间。 Created at timestamp.
updated_atgoogle.protobuf.Timestamp按业务校验最后更新时间。 Last update timestamp.

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

DeleteVendor ​

接口名称: api.DeviceProfileService/DeleteVendor

功能: 删除 Vendor。Delete the given device-profile vendor.

请求: api.DeleteDeviceProfileVendorRequest;返回: google.protobuf.Empty(单次响应)。

请求参数 ​

名称类型必填说明
idstring按业务校验资源 ID。 Vendor ID (UUID).

返回值 ​

无字段。

操作影响

此方法会删除、清空或重置对应资源/状态。调用前核对目标 ID;请勿通过重试重复执行有副作用的操作。

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

ListDevices ​

接口名称: api.DeviceProfileService/ListDevices

功能: 列出 Devices。List the available device-profile devices.

请求: api.ListDeviceProfileDevicesRequest;返回: api.ListDeviceProfileDevicesResponse(单次响应)。

请求参数 ​

名称类型必填说明
limituint32按业务校验本次最多返回条数。 Max number of device-profile vendors to return in the result-set. If not set, it will be treated as 0, and the response will only return the total_count.
offsetuint32按业务校验分页起始偏移。 Offset in the result-set (for pagination).
vendor_idstring按业务校验Vendor ID (UUID).

返回值 ​

名称类型必填说明
total_countuint32按业务校验符合条件的总条数。 Total number of devices.
resultrepeated api.DeviceProfileDeviceListItem按业务校验结果列表或结果内容。 Result-set.

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

GetDevice ​

接口名称: api.DeviceProfileService/GetDevice

功能: 查询 Device。Get the device-profile device.

请求: api.GetDeviceProfileDeviceRequest;返回: api.GetDeviceProfileDeviceResponse(单次响应)。

请求参数 ​

名称类型必填说明
idstring按业务校验资源 ID。 Device-profile device ID.

返回值 ​

名称类型必填说明
deviceapi.DeviceProfileDevice按业务校验终端对象。 Device object.
created_atgoogle.protobuf.Timestamp按业务校验创建时间。 Created at timestamp.
updated_atgoogle.protobuf.Timestamp按业务校验最后更新时间。 Last update timestamp.

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

DeleteDevice ​

接口名称: api.DeviceProfileService/DeleteDevice

功能: 删除 Device。Delete the given device-profile device.

请求: api.DeleteDeviceProfileDeviceRequest;返回: google.protobuf.Empty(单次响应)。

请求参数 ​

名称类型必填说明
idstring按业务校验资源 ID。 Device ID (UUID).

返回值 ​

无字段。

操作影响

此方法会删除、清空或重置对应资源/状态。调用前核对目标 ID;请勿通过重试重复执行有副作用的操作。

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

ListAdrAlgorithms ​

接口名称: api.DeviceProfileService/ListAdrAlgorithms

功能: 列出 AdrAlgorithms。List available ADR algorithms.

请求: google.protobuf.Empty;返回: api.ListDeviceProfileAdrAlgorithmsResponse(单次响应)。

请求参数 ​

无字段。

返回值 ​

名称类型必填说明
total_countuint32按业务校验符合条件的总条数。 Total number of algorithms.
resultrepeated api.AdrAlgorithmListItem按业务校验结果列表或结果内容。 Result-set.

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

嵌套消息结构 ​

api.AdrAlgorithmListItem ​

名称类型必填说明
idstring按业务校验资源 ID。 Algorithm ID.
namestring按业务校验名称。 Algorithm name.

api.AppLayerParams ​

名称类型必填说明
ts003_versionapi.Ts003Version {TS003_NOT_IMPLEMENTED=0, TS003_V100=1, TS003_v200=2}按业务校验TS003 version (Application Layer Clock Sync).
ts003_f_portuint32按业务校验TS003 fPort.
ts004_versionapi.Ts004Version {TS004_NOT_IMPLEMENTED=0, TS004_V100=1, TS004_V200=2}按业务校验TS004 version (Fragmented Data Block Transport).
ts004_f_portuint32按业务校验TS004 fPort.
ts005_versionapi.Ts005Version {TS005_NOT_IMPLEMENTED=0, TS005_V100=1, TS005_V200=2}按业务校验TS005 version (Remote Multicast Setup).
ts005_f_portuint32按业务校验TS005 fPort.

api.CreateDeviceProfileRequest ​

名称类型必填说明
device_profileapi.DeviceProfile按业务校验终端模版对象。 Object to create.

api.CreateDeviceProfileResponse ​

名称类型必填说明
idstring按业务校验资源 ID。 ID (UUID).

api.DeleteDeviceProfileDeviceRequest ​

名称类型必填说明
idstring按业务校验资源 ID。 Device ID (UUID).

api.DeleteDeviceProfileRequest ​

名称类型必填说明
idstring按业务校验资源 ID。 ID (UUID).

api.DeleteDeviceProfileVendorRequest ​

名称类型必填说明
idstring按业务校验资源 ID。 Vendor ID (UUID).

api.DeviceProfile ​

名称类型必填说明
idstring按业务校验资源 ID。 Device-profile ID (UUID). Note: on create this will be automatically generated.
tenant_idstring按业务校验租户 UUID。 Tenant ID (UUID).
namestring按业务校验名称。 Name.
descriptionstring按业务校验描述。 Description.
regioncommon.Region {EU868=0, US915=2, CN779=3, EU433=4, AU915=5, CN470=6, AS923=7, AS923_2=12, AS923_3=13, AS923_4=14, KR920=8, IN865=9, RU864=10, ISM2400=11}按业务校验区域枚举。 Region.
mac_versioncommon.MacVersion {LORAWAN_1_0_0=0, LORAWAN_1_0_1=1, LORAWAN_1_0_2=2, LORAWAN_1_0_3=3, LORAWAN_1_0_4=4, LORAWAN_1_1_0=5}按业务校验LoRaWAN MAC 版本。 LoRaWAN mac-version.
reg_params_revisioncommon.RegParamsRevision {A=0, B=1, RP002_1_0_0=2, RP002_1_0_1=3, RP002_1_0_2=4, RP002_1_0_3=5, RP002_1_0_4=6, RP002_1_0_5=7}按业务校验区域参数版本。 Regional parameters revision.
adr_algorithm_idstring按业务校验ADR algorithm ID.
payload_codec_runtimeapi.CodecRuntime {NONE=0, CAYENNE_LPP=1, JS=2}按业务校验Payload codec runtime.
payload_codec_scriptstring按业务校验Payload codec script.
flush_queue_on_activatebool按业务校验Flush queue on device activation.
uplink_intervaluint32按业务校验预期上行间隔。 Uplink interval (seconds). This defines the expected uplink interval which the device uses for communication. If the uplink interval has expired and no uplink has been received, the device is considered inactive.
device_status_req_intervaluint32按业务校验Device-status request interval (times / day). This defines the times per day that ChirpStack will request the device-status from the device.
supports_otaabool按业务校验是否支持 OTAA。 Supports OTAA.
supports_class_bbool按业务校验是否支持 Class B。 Supports Class B.
supports_class_cbool按业务校验是否支持 Class C。 Supports Class-C.
class_b_timeoutuint32按业务校验Class-B timeout (seconds). This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested).
class_b_ping_slot_periodicityuint32按业务校验Class-B ping-slot periodicity. Valid options are: 0 - 7. Number of ping-slots per beacon-period: pingNb = 2^(7-periodicity) Periodicity: 0 = 128 ping-slots per beacon period = ~ every 1 sec Periodicity: 7 = 1 ping-slot per beacon period = ~ every 128 sec
class_b_ping_slot_druint32按业务校验Class-B ping-slot DR.
class_b_ping_slot_frequint32按业务校验Class-B ping-slot freq (Hz).
class_c_timeoutuint32按业务校验Class-C timeout (seconds). This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested).
abp_rx1_delayuint32按业务校验RX1 delay (for ABP).
abp_rx1_dr_offsetuint32按业务校验RX1 DR offset (for ABP).
abp_rx2_druint32按业务校验RX2 DR (for ABP).
abp_rx2_frequint32按业务校验RX2 frequency (for ABP, Hz).
tagsmap<string, string>按业务校验自定义字符串标签。 Tags (user defined). These tags can be used to add additional information the the device-profile. These tags are exposed in all the integration events of devices using this device-profile.
measurementsmap<string, api.Measurement>按业务校验Measurements. If defined, ChirpStack will visualize these metrics in the web-interface.
auto_detect_measurementsbool按业务校验Auto-detect measurements. If set to true, measurements will be automatically added based on the keys of the decoded payload. In cases where the decoded payload contains random keys in the data, you want to set this to false.
region_config_idstring按业务校验区域配置 ID。 Region configuration ID. If set, devices will only use the associated region. If let blank, then devices will use all regions matching the selected common-name. Note that multiple region configurations can exist for the same common-name, e.g. to provide an 8 channel and 16 channel configuration for the US915 band.
is_relaybool按业务校验Device is a Relay device. Enable this in case the device is a Relay. A Relay device implements TS011 and is able to relay data from relay capable devices. See for more information the TS011 specification.
is_relay_edbool按业务校验Device is a Relay end-device. Enable this in case the device is an end-device that can operate under a Relay. Please refer to the TS011 specification for more information.
relay_ed_relay_onlybool按业务校验End-device only accept data through relay. Only accept data for this device through a relay. This setting is useful for testing as in case of a test-setup, the end-device is usually within range of the gateway.
relay_enabledbool按业务校验Relay must be enabled.
relay_cad_periodicityapi.CadPeriodicity {SEC_1=0, MS_500=1, MS_250=2, MS_100=3, MS_50=4, MS_20=5}按业务校验Relay CAD periodicity.
relay_default_channel_indexuint32按业务校验Relay default channel index. Valid values are 0 and 1, please refer to the RP002 specification for the meaning of these values.
relay_second_channel_frequint32按业务校验Relay second channel frequency (Hz).
relay_second_channel_druint32按业务校验Relay second channel DR.
relay_second_channel_ack_offsetapi.SecondChAckOffset {KHZ_0=0, KHZ_200=1, KHZ_400=2, KHZ_800=3, KHZ_1600=4, KHZ_3200=5}按业务校验Relay second channel ACK offset.
relay_ed_activation_modeapi.RelayModeActivation {DISABLE_RELAY_MODE=0, ENABLE_RELAY_MODE=1, DYNAMIC=2, END_DEVICE_CONTROLLED=3}按业务校验Relay end-device activation mode.
relay_ed_smart_enable_leveluint32按业务校验Relay end-device smart-enable level.
relay_ed_back_offuint32按业务校验Relay end-device back-off (in case it does not receive WOR ACK frame). 0 = Always send a LoRaWAN uplink 1..63 = Send a LoRaWAN uplink after X WOR frames without a WOR ACK
relay_ed_uplink_limit_bucket_sizeuint32按业务校验Relay end-device uplink limit bucket size. This field indicates the multiplier to determine the bucket size according to the following formula: BucketSize TOKEN = _reload_rate x _bucket_size Valid values (0 - 3): 0 = 1 1 = 2 2 = 4 3 = 12
relay_ed_uplink_limit_reload_rateuint32按业务校验Relay end-device uplink limit reload rate. Valid values: * 0 - 62 = X tokens every hour * 63 = no limitation
relay_join_req_limit_reload_rateuint32按业务校验Relay join-request limit reload rate. Valid values: * 0 - 126 = X tokens every hour * 127 = no limitation
relay_notify_limit_reload_rateuint32按业务校验Relay notify limit reload rate. Valid values: * 0 - 126 = X tokens every hour * 127 = no limitation
relay_global_uplink_limit_reload_rateuint32按业务校验Relay global uplink limit reload rate. Valid values: * 0 - 126 = X tokens every hour * 127 = no limitation
relay_overall_limit_reload_rateuint32按业务校验Relay overall limit reload rate. Valid values: * 0 - 126 = X tokens every hour * 127 = no limitation
relay_join_req_limit_bucket_sizeuint32按业务校验Relay join-request limit bucket size. This field indicates the multiplier to determine the bucket size according to the following formula: BucketSize TOKEN = _reload_rate x _bucket_size Valid values (0 - 3): 0 = 1 1 = 2 2 = 4 3 = 12
relay_notify_limit_bucket_sizeuint32按业务校验Relay notify limit bucket size. This field indicates the multiplier to determine the bucket size according to the following formula: BucketSize TOKEN = _reload_rate x _bucket_size Valid values (0 - 3): 0 = 1 1 = 2 2 = 4 3 = 12
relay_global_uplink_limit_bucket_sizeuint32按业务校验Relay globak uplink limit bucket size. This field indicates the multiplier to determine the bucket size according to the following formula: BucketSize TOKEN = _reload_rate x _bucket_size Valid values (0 - 3): 0 = 1 1 = 2 2 = 4 3 = 12
relay_overall_limit_bucket_sizeuint32按业务校验Relay overall limit bucket size. This field indicates the multiplier to determine the bucket size according to the following formula: BucketSize TOKEN = _reload_rate x _bucket_size Valid values (0 - 3): 0 = 1 1 = 2 2 = 4 3 = 12
allow_roamingbool按业务校验Allow roaming. If set to true, it means that the device is allowed to use roaming.
rx1_delayuint32按业务校验RX1 Delay. This makes it possible to override the system RX1 Delay. Please note that this values only has effect in case it is higher than the system value. In other words, it can be used to increase the RX1 Delay but not to decrease it. Valid options are 1 - 15 (0 = always use system RX1 Delay).
app_layer_paramsapi.AppLayerParams按业务校验Application Layer parameters.
device_idstring按业务校验Device-profile device ID (UUID) (optiona).
firmware_versionstring按业务校验Firmware version.
supported_uplink_data_ratesrepeated uint32按业务校验Supported uplink data-rates. This option configures the data-rates that are supported by the devices using this device-profile. If not set, the default min / max data-rates will be used. Example: In case you would like to use also SF5 and SF6 in EU868, you would set this option to: 0, 1, 2, 3, 4, 5, 6, 7, 12, 13.

api.DeviceProfile.MeasurementsEntry ​

名称类型必填说明
keystring按业务校验消息定义未补充字段说明。
valueapi.Measurement按业务校验消息定义未补充字段说明。

api.DeviceProfile.TagsEntry ​

名称类型必填说明
keystring按业务校验消息定义未补充字段说明。
valuestring按业务校验消息定义未补充字段说明。

api.DeviceProfileDevice ​

名称类型必填说明
idstring按业务校验资源 ID。 Device ID (UUID).
vendor_idstring按业务校验Vendor ID (UUID).
namestring按业务校验名称。 Name.
descriptionstring按业务校验描述。 Description.
metadatamap<string, string>按业务校验Metadata.

api.DeviceProfileDevice.MetadataEntry ​

名称类型必填说明
keystring按业务校验消息定义未补充字段说明。
valuestring按业务校验消息定义未补充字段说明。

api.DeviceProfileDeviceListItem ​

名称类型必填说明
idstring按业务校验资源 ID。 Device ID (UUID).
created_atgoogle.protobuf.Timestamp按业务校验创建时间。 Created at timestamp.
updated_atgoogle.protobuf.Timestamp按业务校验最后更新时间。 Last update timestamp.
namestring按业务校验名称。 Name.

api.DeviceProfileListItem ​

名称类型必填说明
idstring按业务校验资源 ID。 Device-profile ID (UUID).
created_atgoogle.protobuf.Timestamp按业务校验创建时间。 Created at timestamp.
updated_atgoogle.protobuf.Timestamp按业务校验最后更新时间。 Last update timestamp.
namestring按业务校验名称。 Name.
regioncommon.Region {EU868=0, US915=2, CN779=3, EU433=4, AU915=5, CN470=6, AS923=7, AS923_2=12, AS923_3=13, AS923_4=14, KR920=8, IN865=9, RU864=10, ISM2400=11}按业务校验区域枚举。 Region.
mac_versioncommon.MacVersion {LORAWAN_1_0_0=0, LORAWAN_1_0_1=1, LORAWAN_1_0_2=2, LORAWAN_1_0_3=3, LORAWAN_1_0_4=4, LORAWAN_1_1_0=5}按业务校验LoRaWAN MAC 版本。 LoRaWAN mac-version.
reg_params_revisioncommon.RegParamsRevision {A=0, B=1, RP002_1_0_0=2, RP002_1_0_1=3, RP002_1_0_2=4, RP002_1_0_3=5, RP002_1_0_4=6, RP002_1_0_5=7}按业务校验区域参数版本。 Regional parameters revision.
supports_otaabool按业务校验是否支持 OTAA。 Supports OTAA.
supports_class_bbool按业务校验是否支持 Class B。 Supports Class-B.
supports_class_cbool按业务校验是否支持 Class C。 Supports Class-C.
vendor_idstring按业务校验Vendor ID. This value is only available for global device-profiles.
vendor_namestring按业务校验Vendor name. This value is only available for global device-profiles.
device_idstring按业务校验Device ID. This value is only available for global device-profiles.
device_namestring按业务校验Device name. This value is only available for global device-profiles.
firmware_versionstring按业务校验Firmware version.

api.DeviceProfileVendor ​

名称类型必填说明
idstring按业务校验资源 ID。 Vendor ID (UUID).
namestring按业务校验名称。 Name.
vendor_iduint32按业务校验LoRa Alliance Vendor ID.
ouisrepeated string按业务校验OUIs.
metadatamap<string, string>按业务校验Metadata.

api.DeviceProfileVendor.MetadataEntry ​

名称类型必填说明
keystring按业务校验消息定义未补充字段说明。
valuestring按业务校验消息定义未补充字段说明。

api.DeviceProfileVendorListItem ​

名称类型必填说明
idstring按业务校验资源 ID。 Vendor ID (UUID).
created_atgoogle.protobuf.Timestamp按业务校验创建时间。 Created at timestamp.
updated_atgoogle.protobuf.Timestamp按业务校验最后更新时间。 Last update timestamp.
namestring按业务校验名称。 Name.
vendor_iduint32按业务校验LoRa Alliance Vendor ID.
ouisrepeated string按业务校验OUIs.
metadatamap<string, string>按业务校验Metadata.

api.DeviceProfileVendorListItem.MetadataEntry ​

名称类型必填说明
keystring按业务校验消息定义未补充字段说明。
valuestring按业务校验消息定义未补充字段说明。

api.GetDeviceProfileByProfileIdRequest ​

名称类型必填说明
vendor_iduint32按业务校验Vendor ID.
vendor_profile_iduint32按业务校验Vendor Profile ID.

api.GetDeviceProfileByProfileIdResponse ​

名称类型必填说明
device_profileapi.DeviceProfile按业务校验终端模版对象。 Device-profile object.
created_atgoogle.protobuf.Timestamp按业务校验创建时间。 Created at timestamp.
updated_atgoogle.protobuf.Timestamp按业务校验最后更新时间。 Last update timestamp.

api.GetDeviceProfileDeviceRequest ​

名称类型必填说明
idstring按业务校验资源 ID。 Device-profile device ID.

api.GetDeviceProfileDeviceResponse ​

名称类型必填说明
deviceapi.DeviceProfileDevice按业务校验终端对象。 Device object.
created_atgoogle.protobuf.Timestamp按业务校验创建时间。 Created at timestamp.
updated_atgoogle.protobuf.Timestamp按业务校验最后更新时间。 Last update timestamp.

api.GetDeviceProfileRequest ​

名称类型必填说明
idstring按业务校验资源 ID。 ID (UUID).

api.GetDeviceProfileResponse ​

名称类型必填说明
device_profileapi.DeviceProfile按业务校验终端模版对象。 Device-profile object.
created_atgoogle.protobuf.Timestamp按业务校验创建时间。 Created at timestamp.
updated_atgoogle.protobuf.Timestamp按业务校验最后更新时间。 Last update timestamp.

api.GetDeviceProfileVendorRequest ​

名称类型必填说明
idstring按业务校验资源 ID。 Vendor ID (UUID).

api.GetDeviceProfileVendorResponse ​

名称类型必填说明
vendorapi.DeviceProfileVendor按业务校验Vendor object.
created_atgoogle.protobuf.Timestamp按业务校验创建时间。 Created at timestamp.
updated_atgoogle.protobuf.Timestamp按业务校验最后更新时间。 Last update timestamp.

api.ListDeviceProfileAdrAlgorithmsResponse ​

名称类型必填说明
total_countuint32按业务校验符合条件的总条数。 Total number of algorithms.
resultrepeated api.AdrAlgorithmListItem按业务校验结果列表或结果内容。 Result-set.

api.ListDeviceProfileDevicesRequest ​

名称类型必填说明
limituint32按业务校验本次最多返回条数。 Max number of device-profile vendors to return in the result-set. If not set, it will be treated as 0, and the response will only return the total_count.
offsetuint32按业务校验分页起始偏移。 Offset in the result-set (for pagination).
vendor_idstring按业务校验Vendor ID (UUID).

api.ListDeviceProfileDevicesResponse ​

名称类型必填说明
total_countuint32按业务校验符合条件的总条数。 Total number of devices.
resultrepeated api.DeviceProfileDeviceListItem按业务校验结果列表或结果内容。 Result-set.

api.ListDeviceProfileVendorsRequest ​

名称类型必填说明
limituint32按业务校验本次最多返回条数。 Max number of device-profile vendors to return in the result-set. If not set, it will be treated as 0, and the response will only return the total_count.
offsetuint32按业务校验分页起始偏移。 Offset in the result-set (for pagination).

api.ListDeviceProfileVendorsResponse ​

名称类型必填说明
total_countuint32按业务校验符合条件的总条数。 Total number of vendors.
resultrepeated api.DeviceProfileVendorListItem按业务校验结果列表或结果内容。 Result-set.

api.ListDeviceProfilesRequest ​

名称类型必填说明
limituint32按业务校验本次最多返回条数。 Max number of device-profiles to return in the result-set. If not set, it will be treated as 0, and the response will only return the total_count.
offsetuint32按业务校验分页起始偏移。 Offset in the result-set (for pagination).
searchstring按业务校验搜索关键字。 If set, the given string will be used to search on name.
tenant_idstring按业务校验租户 UUID。 Tenant ID to list the device-profiles for. This value must be set, unless global_only is set to true. The result will be the list of device-profiles matching the tenant_id and global tenants. If you only wish to list the device-profiles matching the tenant_id, you must set tenant_only to true.
device_idstring按业务校验Device-profile device ID. Note that his is the device-profile ID, not the DevEUI. This value requires global_only to be set to true.
global_onlybool按业务校验Only list global (non-tenant) device-profiles.
tenant_onlybool按业务校验Only list device-profiles matching the tenant_id.

api.ListDeviceProfilesResponse ​

名称类型必填说明
total_countuint32按业务校验符合条件的总条数。 Total number of device-profiles.
resultrepeated api.DeviceProfileListItem按业务校验结果列表或结果内容。 Result-set.

api.Measurement ​

名称类型必填说明
namestring按业务校验名称。 Name (user defined).
kindapi.MeasurementKind {UNKNOWN=0, COUNTER=1, ABSOLUTE=2, GAUGE=3, STRING=4}按业务校验Kind.

api.UpdateDeviceProfileRequest ​

名称类型必填说明
device_profileapi.DeviceProfile按业务校验终端模版对象。 Device-profile object.

设备使用指南