fix: 1、修复wifi锁、网关配网传入的gatewayJson长度1字节改为2字节bug

This commit is contained in:
魏少阳 2025-01-08 19:35:42 +08:00
parent a90a6a387a
commit a61ebda710
2 changed files with 3 additions and 3 deletions

View File

@ -53,8 +53,8 @@ class GatewayConfiguringWifiCommand extends SenderProtocol {
final int clientIdLengthDoubleType1 = clientIdLengthDouble.toInt();
final int clientIdLengthDoubleType2 = clientIdLength % 256;
// AppLog.log('gatewayConfigurationStr!:$gatewayConfigurationStr! clientIdLength:$clientIdLength clientIdLengthDouble:$clientIdLengthDouble clientIdLengthDoubleType1:$clientIdLengthDoubleType1 clientIdLengthDoubleType2:$clientIdLengthDoubleType2');
data.add(clientIdLengthDoubleType1);
data.add(clientIdLengthDoubleType2);
subData.add(clientIdLengthDoubleType1);
subData.add(clientIdLengthDoubleType2);
subData.addAll(utf8.encode(gatewayConfigurationStr!));
// subData = getFixedLengthList(subData, 20 - clientIdLength);

View File

@ -104,7 +104,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# 1.0.85+2024120301完善网关功能
# 1.0.85+2024120401修复网关问题打包给谢敬调试
version: 1.0.85+2025010801
version: 1.0.85+2025010802
environment:
sdk: '>=2.12.0 <3.0.0'