SUPLA / supla-core

GNU General Public License v2.0
72 stars 43 forks source link

Introduce the second meaning for the Offline variable. #460

Open przemyslawzygmunt opened 1 week ago

przemyslawzygmunt commented 1 week ago

offline ( 0 false, 1 true, 2 online but not available) - Value 2 is already used by Auraton Box. online ( 0 false, 1 true, 2 online but not available). You need to upgrade the protocol version and for Android JNI switch to ENUM(offline == 0, online == 1, online but not available == 2)

https://github.com/SUPLA/supla-core/blob/422d7f85822a24a894a251e475199f77268db1be/supla-client/Android/jni/main.cpp#L434 https://github.com/SUPLA/supla-core/blob/422d7f85822a24a894a251e475199f77268db1be/supla-client/Android/jni/main.cpp#L486