修复路劲规划暂停和继续和停止的tcp指令的数据格式
This commit is contained in:
@@ -277,12 +277,10 @@ class TcpClient {
|
||||
void sendDeviceStateChange(RoutePlanSendEntity routePlanSendEntity) {
|
||||
if (_socket == null) return;
|
||||
final payload = routePlanSendEntity.toBytes();
|
||||
//_socket!.add(payload);
|
||||
sendRaw(0x02, payload);
|
||||
// 🔥 核心修复:直接发送字节数组,不再用 sendRaw 包装
|
||||
_socket!.add(payload);
|
||||
var counts = routePlanSendEntity.pointCounts;
|
||||
var string = routePlanSendEntity.toString();
|
||||
print("sendDeviceStateChange 底层发送指令完成,数据:$counts");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user