From 8a98dc6aa246e2b6acd57f5b9910134c4149e633 Mon Sep 17 00:00:00 2001 From: christianrowlands Date: Mon, 5 Aug 2024 12:41:01 -0400 Subject: [PATCH] Adds the appVersion field to the device status message --- src/main/asyncapi/network_survey_messaging.yaml | 6 ++++++ src/main/proto/com/craxiom/messaging/device_status.proto | 1 + 2 files changed, 7 insertions(+) diff --git a/src/main/asyncapi/network_survey_messaging.yaml b/src/main/asyncapi/network_survey_messaging.yaml index 7300bb5..52cc156 100644 --- a/src/main/asyncapi/network_survey_messaging.yaml +++ b/src/main/asyncapi/network_survey_messaging.yaml @@ -1572,6 +1572,8 @@ components: $ref: '#/components/schemas/speed' deviceModel: $ref: '#/components/schemas/deviceModel' + appVersion: + $ref: '#/components/schemas/appVersion' accuracy: $ref: '#/components/schemas/accuracy' heading: @@ -2168,6 +2170,10 @@ components: type: string description: The model number of the device that this message originated from. example: Pixel 5 + appVersion: + type: string + description: The version of the software application that this message originated from (most likely the Network Survey Android app, but could be any other app). Added in version 1.3.0. + example: 1.28 accuracy: type: integer format: int32 diff --git a/src/main/proto/com/craxiom/messaging/device_status.proto b/src/main/proto/com/craxiom/messaging/device_status.proto index a081ce4..9c9cba1 100644 --- a/src/main/proto/com/craxiom/messaging/device_status.proto +++ b/src/main/proto/com/craxiom/messaging/device_status.proto @@ -38,6 +38,7 @@ message DeviceStatusData { google.protobuf.Int32Value batteryLevelPercent = 7; Error error = 10; google.protobuf.BoolValue mdmOverride = 11; + string appVersion = 12; double gnssLatitude = 15; double gnssLongitude = 16;