Send the switchbot version mark on the EU version packet
Every locale.cfg build takes the EU branch of SendClientVersionPacket, so "mt20261016" was never sent. The EU timestamp is now "1215955205 mt20261016": the server's atoi version check still reads 1215955205. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
fc98e6e2b4
commit
99cf5514c3
@@ -4175,7 +4175,8 @@ bool CPythonNetworkStream::SendClientVersionPacket()
|
||||
TPacketCGClientVersion2 kVersionPacket;
|
||||
kVersionPacket.header = HEADER_CG_CLIENT_VERSION2;
|
||||
strncpy(kVersionPacket.filename, filename.c_str(), sizeof(kVersionPacket.filename)-1);
|
||||
strncpy(kVersionPacket.timestamp, "1215955205", sizeof(kVersionPacket.timestamp)-1); // # python time.time 앞자리
|
||||
// PORT: " mt20261016" enables the AVA2 switchbot on the server (port_switchbot.cpp); the version check uses atoi.
|
||||
strncpy(kVersionPacket.timestamp, "1215955205 mt20261016", sizeof(kVersionPacket.timestamp)-1); // # python time.time 앞자리
|
||||
//strncpy(kVersionPacket.timestamp, __TIMESTAMP__, sizeof(kVersionPacket.timestamp)-1); // old_string_ver
|
||||
//strncpy(kVersionPacket.timestamp, "1218055205", sizeof(kVersionPacket.timestamp)-1); // new_future
|
||||
//strncpy(kVersionPacket.timestamp, "1214055205", sizeof(kVersionPacket.timestamp)-1); // old_past
|
||||
|
||||
Reference in New Issue
Block a user