Change some required fields to optional in Xiaomi protobuf specs

The Xiaomi Watch S1 Active does not send some fields that have
been declared as `required`, which results in those messages
not being processed at all.
This commit is contained in:
MrYoranimo 2023-11-26 21:45:17 +01:00
parent 6933b8a793
commit 20cdef5283

View File

@ -56,7 +56,7 @@ message AuthStep3 {
message AuthStep4 {
required uint32 unknown1 = 1;
required uint32 unknown2 = 2;
optional uint32 unknown2 = 2;
}
message AuthDeviceInfo {
@ -415,7 +415,7 @@ message HeartRate {
optional AdvancedMonitoring advancedMonitoring = 5;
optional uint32 unknown7 = 7; // 1
optional HeartRateAlarmLow heartRateAlarmLow = 8;
required uint32 breathingScore = 9; // 1 on, 2 off
optional uint32 breathingScore = 9; // 1 on, 2 off
}
message AdvancedMonitoring {