Gawhary / Qt-BLE-Tester

Test program for Qt Bluetooth low energy (scan devices and services, send and receive data)
53 stars 17 forks source link

change code error #2

Open 346836814 opened 1 year ago

346836814 commented 1 year ago

QString change to QByte array appearing error code, it is data:BB 00 39 00 09 00 00 00 00 01 00 02 00 06 4B 7E it is print result: BLEInterface::write: "\xBB\x00""9\x00\t\x00\x00\x00\x00\x01\x00\x02\x00\x06K~" I tried some ways,but It can't be solved;

it is code :data = QByteArray::fromHex(ui->sendTextEdit->toPlainText().toLatin1());

it is function : void MainWindow::on_sendButton_clicked();

image

image