QByteArray getstatus;
getstatus[0] = 0xA0;
getstatus[1] = 0x04;
getstatus[2] = 0x00;
getstatus[3] = 0x03;
getstatus[4] = 0x01;
getstatus[5] = 0x00;
m_socket->write(getstatus);
第六位是校验和(第二位至第五位相加取反加一)目前遇到瓶颈了,麻烦前辈指点。
getstatus[0] = 0xA0;
getstatus[1] = 0x04;
getstatus[2] = 0x00;
getstatus[3] = 0x03;
getstatus[4] = 0x01;
getstatus[5] = 0x00;
m_socket->write(getstatus);
第六位是校验和(第二位至第五位相加取反加一)目前遇到瓶颈了,麻烦前辈指点。