Browse Source
Merge pull request #8393 from vvlladd28/bug/attribute-subscribe-topic/init-value
Added init value for MQTT transport configuration in device profile
pull/8401/head
Andrew Shvayka
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
ui-ngx/src/app/shared/models/device.models.ts
|
|
|
@ -244,6 +244,7 @@ export interface DefaultDeviceProfileTransportConfiguration { |
|
|
|
export interface MqttDeviceProfileTransportConfiguration { |
|
|
|
deviceTelemetryTopic?: string; |
|
|
|
deviceAttributesTopic?: string; |
|
|
|
deviceAttributesSubscribeTopic?: string; |
|
|
|
sparkplug?: boolean; |
|
|
|
sendAckOnValidationException?: boolean; |
|
|
|
transportPayloadTypeConfiguration?: { |
|
|
|
@ -365,6 +366,7 @@ export function createDeviceProfileTransportConfiguration(type: DeviceTransportT |
|
|
|
const mqttTransportConfiguration: MqttDeviceProfileTransportConfiguration = { |
|
|
|
deviceTelemetryTopic: 'v1/devices/me/telemetry', |
|
|
|
deviceAttributesTopic: 'v1/devices/me/attributes', |
|
|
|
deviceAttributesSubscribeTopic: 'v1/devices/me/attributes', |
|
|
|
sparkplug: false, |
|
|
|
sendAckOnValidationException: false, |
|
|
|
transportPayloadTypeConfiguration: { |
|
|
|
|