Fatal signal on QLowEnergyService.writeCharacteristic()
Solved
Mobile and Embedded
-
The following line of code is causing my app to crash when it gets called. What does this mean?
m_service is a QLowEnergyService object (aka bluetooth LE service)
m_showmode is a quint8 type.m_service->writeCharacteristic(m_service->characteristic(QBluetoothUuid((quint16)0x2EE7)), QByteArray::number((uint)m_showmode));
I get the following error when it crashes:
04-09 01:26:48.831 18079 18909 D libBlueGhoztApp.so: F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 18909 (QtThread)
-
@kgregory whats the current state() of your service ?
and your characteristic: isValid() ? -
just wanted to answer, but you've deleted your last message and set as solved.
would be good to tell others what was the reason and how you fixed it