(a4ff2497ecee8aa6046ed0aa558f736dc9f614c5)
#include "lecmaccalculator_p.h"
#include "qlowenergycontroller_bluez_p.h"
#include "qbluetoothsocketbase_p.h"
#include "qbluetoothsocket_bluez_p.h"
#include "qleadvertiser_bluez_p.h"
#include "bluez/bluez_data_p.h"
#include "bluez/hcimanager_p.h"
#include "bluez/objectmanager_p.h"
#include "bluez/remotedevicemanager_p.h"
#include "bluez/bluez5_helper_p.h"
#include "bluez/bluetoothmanagement_p.h"
#include <QtCore/QFileInfo>
#include <QtCore/QLoggingCategory>
#include <QtCore/QSettings>
#include <QtCore/QTimer>
#include <QtBluetooth/QBluetoothLocalDevice>
#include <QtBluetooth/QBluetoothSocket>
#include <QtBluetooth/QLowEnergyCharacteristicData>
#include <QtBluetooth/QLowEnergyDescriptorData>
#include <QtBluetooth/QLowEnergyService>
#include <QtBluetooth/QLowEnergyServiceData>
#include <algorithm>
#include <climits>
#include <cstring>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include "moc_qlowenergycontroller_bluez_p.cpp"
Go to the source code of this file.
|
static bool | dumpErrorInformation (const QByteArray &response) |
static int | getUuidSize (const QBluetoothUuid &uuid) |
template<typename T> |
static void | putDataAndIncrement (const T &src, char *&dst) |
template<> |
void | putDataAndIncrement (const QBluetoothUuid &uuid, char *&dst) |
template<> |
void | putDataAndIncrement (const QByteArray &value, char *&dst) |
QLowEnergyHandle | parseReadByTypeCharDiscovery (QLowEnergyServicePrivate::CharData *charData, const char *data, quint16 elementLength) |
QLowEnergyHandle | parseReadByTypeIncludeDiscovery (QList< QBluetoothUuid > *foundServices, const char *data, quint16 elementLength) |
static Q_DECL_COLD_FUNCTION void | reportMalformedData (QBluezConst::AttCommand cmd, const QByteArray &response) |
static bool | isNotificationEnabled (quint16 clientConfigValue) |
static bool | isIndicationEnabled (quint16 clientConfigValue) |
static QString | nameOfRemoteCentral (const QBluetoothAddress &peerAddress) |
static QByteArray | uuidToByteArray (const QBluetoothUuid &uuid) |
template<> |
void | putDataAndIncrement (const QBluetoothUuid &uuid, char *&dst) |
template<> |
void | putDataAndIncrement (const QByteArray &value, char *&dst) |
◆ APPEND_VALUE
#define APPEND_VALUE true |
◆ ERROR_RESPONSE_HEADER_SIZE
#define ERROR_RESPONSE_HEADER_SIZE 5 |
◆ EXECUTE_WRITE_HEADER_SIZE
#define EXECUTE_WRITE_HEADER_SIZE 2 |
◆ FIND_INFO_REQUEST_HEADER_SIZE
#define FIND_INFO_REQUEST_HEADER_SIZE 5 |
◆ GATT_CHARACTERISTIC
#define GATT_CHARACTERISTIC quint16(0x2803) |
◆ GATT_INCLUDED_SERVICE
#define GATT_INCLUDED_SERVICE quint16(0x2802) |
◆ GATT_PRIMARY_SERVICE
#define GATT_PRIMARY_SERVICE quint16(0x2800) |
◆ GATT_SECONDARY_SERVICE
#define GATT_SECONDARY_SERVICE quint16(0x2801) |
◆ GRP_TYPE_REQ_HEADER_SIZE
#define GRP_TYPE_REQ_HEADER_SIZE 7 |
◆ MTU_EXCHANGE_HEADER_SIZE
#define MTU_EXCHANGE_HEADER_SIZE 3 |
◆ NEW_VALUE
◆ PREPARE_WRITE_HEADER_SIZE
#define PREPARE_WRITE_HEADER_SIZE 5 |
◆ READ_BLOB_REQUEST_HEADER_SIZE
#define READ_BLOB_REQUEST_HEADER_SIZE 5 |
◆ READ_BY_TYPE_REQ_HEADER_SIZE
#define READ_BY_TYPE_REQ_HEADER_SIZE 7 |
◆ READ_REQUEST_HEADER_SIZE
#define READ_REQUEST_HEADER_SIZE 3 |
◆ WRITE_REQUEST_HEADER_SIZE
#define WRITE_REQUEST_HEADER_SIZE 3 |
◆ dumpErrorInformation()
bool dumpErrorInformation |
( |
const QByteArray & | response | ) |
|
|
static |
Definition at line 70 of file qlowenergycontroller_bluez.cpp.
References QBluezConst::ATT_ERROR_APPLICATION_END, QBluezConst::ATT_ERROR_APPLICATION_START, QBluezConst::ATT_ERROR_ATTRIBUTE_NOT_FOUND, QBluezConst::ATT_ERROR_ATTRIBUTE_NOT_LONG, QBluezConst::ATT_ERROR_INSUF_AUTHENTICATION, QBluezConst::ATT_ERROR_INSUF_AUTHORIZATION, QBluezConst::ATT_ERROR_INSUF_ENCR_KEY_SIZE, QBluezConst::ATT_ERROR_INSUF_ENCRYPTION, QBluezConst::ATT_ERROR_INSUF_RESOURCES, QBluezConst::ATT_ERROR_INVAL_ATTR_VALUE_LEN, QBluezConst::ATT_ERROR_INVALID_HANDLE, QBluezConst::ATT_ERROR_INVALID_OFFSET, QBluezConst::ATT_ERROR_INVALID_PDU, QBluezConst::ATT_ERROR_PREPARE_QUEUE_FULL, QBluezConst::ATT_ERROR_READ_NOT_PERM, QBluezConst::ATT_ERROR_REQUEST_NOT_SUPPORTED, QBluezConst::ATT_ERROR_UNLIKELY, QBluezConst::ATT_ERROR_UNSUPPRTED_GROUP_TYPE, QBluezConst::ATT_ERROR_WRITE_NOT_PERM, and QBluezConst::ATT_OP_ERROR_RESPONSE.
◆ getUuidSize()
◆ isIndicationEnabled()
bool isIndicationEnabled |
( |
quint16 | clientConfigValue | ) |
|
|
static |
◆ isNotificationEnabled()
bool isNotificationEnabled |
( |
quint16 | clientConfigValue | ) |
|
|
static |
◆ nameOfRemoteCentral()
◆ parseReadByTypeCharDiscovery()
◆ parseReadByTypeIncludeDiscovery()
◆ putDataAndIncrement() [1/5]
◆ putDataAndIncrement() [2/5]
◆ putDataAndIncrement() [3/5]
◆ putDataAndIncrement() [4/5]
◆ putDataAndIncrement() [5/5]
template<typename T>
void putDataAndIncrement |
( |
const T & | src, |
|
|
char *& | dst ) |
|
static |
◆ reportMalformedData()
◆ uuidToByteArray()
◆ ATT_DEFAULT_LE_MTU
◆ ATT_MAX_LE_MTU
◆ maxPrepareQueueSize
const int maxPrepareQueueSize = 1024 |