<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[qt.bluetooth.windows: Unable to get value for characteristic]]></title><description><![CDATA[<p dir="auto">I am unsuccesfully<strong>trying to read a Custom BLE Service characteristics</strong> from a custom device i created on a STM32WB5M.</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/c472323b-4e22-4059-9464-df5f808660e9.png" alt="a65eef12-ce0a-4be6-8efc-a126eba8d811-imagen.png" class=" img-fluid img-markdown" /><br />
I know the embedded part works because im able to read the custom services from an android app from STM<br />
<img src="https://ddgobkiprc33d.cloudfront.net/ee5fbc39-3f53-4c82-a036-09dd035e0139.png" alt="533759ca-a87e-4e8f-a966-137d5fcce8f6-imagen.png" class=" img-fluid img-markdown" /><img src="https://ddgobkiprc33d.cloudfront.net/31e0347c-c519-4928-8a1e-434880811fe4.png" alt="cc4efd5c-d951-4623-8233-7738edf7c750-imagen.png" class=" img-fluid img-markdown" /> <img src="https://ddgobkiprc33d.cloudfront.net/111d07c1-2236-447a-bcff-809e4dce925b.png" alt="7eef2303-cf30-420e-8a40-5f20d6adb4a2-imagen.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">But when i try to develop a simple QT app this is the output  get from QTcreator's debugging console:<br />
Im not sure what is missing, maybe it has something to do with my service having a custom uuid?</p>
<pre><code>//This slot is triggered when a serviceDiscovered signal is emmited by the QLowEnergyController
void javiBLE::controlServiceDiscovered(const QBluetoothUuid &amp;uuid)
{
    qDebug() &lt;&lt; "controlServiceDiscovered:" &lt;&lt; uuid;
    if(uuid==QBluetoothUuid(QString("{0000fe40-cc7a-482a-984a-7f2ed5b3e58f}"))){
        mBLEservice=mBLEControl-&gt;createServiceObject(uuid, this);

        connect(mBLEservice, SIGNAL(stateChanged(QLowEnergyService::ServiceState)),                 this, SLOT(serviceStateChanged(QLowEnergyService::ServiceState)));
        connect(mBLEservice, SIGNAL(characteristicChanged(QLowEnergyCharacteristic,QByteArray)),    this, SLOT(serviceCharacteristicChanged(QLowEnergyCharacteristic,QByteArray)));
        connect(mBLEservice, SIGNAL(characteristicRead(QLowEnergyCharacteristic,QByteArray)),       this, SLOT(serviceCharacteristicRead(QLowEnergyCharacteristic,QByteArray)));
        connect(mBLEservice, SIGNAL(characteristicWritten(QLowEnergyCharacteristic,QByteArray)),    this, SLOT(serviceCharacteristicWritten(QLowEnergyCharacteristic,QByteArray)));
        connect(mBLEservice, SIGNAL(descriptorRead(QLowEnergyDescriptor,QByteArray)),               this, SLOT(serviceDescriptorRead(QLowEnergyDescriptor,QByteArray)));
        connect(mBLEservice, SIGNAL(descriptorWritten(QLowEnergyDescriptor,QByteArray)),            this, SLOT(serviceDescriptorWritten(QLowEnergyDescriptor,QByteArray)));
        connect(mBLEservice, SIGNAL(error(QLowEnergyService::ServiceError)),                        this, SLOT(serviceError(QLowEnergyService::ServiceError)));
        mBLEservice-&gt;discoverDetails();///////&lt;----This line throws qt.bluetooth.windows: Unable to get value for characteristic
    }
}
</code></pre>
<pre><code>BLE Found new device: "MY_CUSTOM" ( "00:80:E1:26:C2:49" )
Low Energy device found. Scanning more...
controlStateChanged: QLowEnergyController::ConnectingState
controlStateChanged: QLowEnergyController::ConnectedState
controlConected
controlStateChanged: QLowEnergyController::DiscoveringState
controlServiceDiscovered: "{00001801-0000-1000-8000-00805f9b34fb}"
controlServiceDiscovered: "{00001800-0000-1000-8000-00805f9b34fb}"
controlServiceDiscovered: "{0000fe40-cc7a-482a-984a-7f2ed5b3e58f}"
serviceStateChanged: QLowEnergyService::DiscoveringServices
qt.bluetooth.windows: Unable to get value for characteristic "{0000fe42-8e22-4541-9d4c-21edae82ed19}" of the service "{0000fe40-cc7a-482a-984a-7f2ed5b3e58f}" : "No se encontraron atributos en el intervalo de identificadores de atributo especificado." //translates to: cant find attributes within the attribute range specified
serviceStateChanged: QLowEnergyService::ServiceDiscovered
controlStateChanged: QLowEnergyController::DiscoveredState
controlDiscoveryFinished
BLE discovery finished:
</code></pre>
<hr />
<p dir="auto">running QT 5.12.2 (64bit)  on QT Creator 4.15.0<br />
<img src="https://ddgobkiprc33d.cloudfront.net/66ae876e-1744-4ef5-ba53-27b5e18cd7da.png" alt="6deb626a-91c6-44e7-9484-a84c6b918346-imagen.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">my code: <a href="https://github.com/javiBajoCero/STM32WBWorkshop_BluetoothMesh_LAB1" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/javiBajoCero/STM32WBWorkshop_BluetoothMesh_LAB1</a></p>
]]></description><link>https://forum.qt.io/topic/132298/qt-bluetooth-windows-unable-to-get-value-for-characteristic</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 12:14:14 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/132298.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Nov 2021 09:54:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to qt.bluetooth.windows: Unable to get value for characteristic on Thu, 25 Nov 2021 20:56:35 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">You need to update to Qt 5.14 at least for that.</p>
<p dir="auto">See the <a href="https://doc.qt.io/qt-5/qtbluetooth-index.html" target="_blank" rel="noopener noreferrer nofollow ugc">documentation here</a>.</p>
]]></description><link>https://forum.qt.io/post/691826</link><guid isPermaLink="true">https://forum.qt.io/post/691826</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 25 Nov 2021 20:56:35 GMT</pubDate></item></channel></rss>