9#ifndef QTPOKIT_STATUSSERVICE_H
10#define QTPOKIT_STATUSSERVICE_H
14#include <QBluetoothAddress>
15#include <QBluetoothUuid>
16#include <QVersionNumber>
18QTPOKIT_BEGIN_NAMESPACE
20class StatusServicePrivate;
52 MultimeterDcVoltage = 1,
53 MultimeterAcVoltage = 2,
54 MultimeterDcCurrent = 3,
55 MultimeterAcCurrent = 4,
56 MultimeterResistance = 5,
58 MultimeterContinuity = 7,
59 MultimeterTemperature = 8,
61 LoggerModeSampling = 10,
82 bool readDeviceCharacteristics();
83 bool readStatusCharacteristic();
84 bool readNameCharacteristic();
94 bool setDeviceName(
const QString &name);
114 friend class TestStatusService;
Declares the AbstractPokitService class.
The AbstractPokitService class provides a common base for Pokit services classes.
Definition: abstractpokitservice.h:24
virtual bool readCharacteristics()=0
Read all characteristics.
The StatusService class accesses the Pokit Status service of Pokit devices.
Definition: statusservice.h:23
BatteryStatus
Values supported by the Battery Status attribute of the Status characteristic.
Definition: statusservice.h:65
void deviceNameWritten()
This signal is emitted when the Device Name characteristic has been written successfully.
void deviceStatusRead(const StatusService::Status &status)
This signal is emitted when the Status characteristic has been read successfully.
DeviceStatus
Values supported by the Status attribute of the Status characteristic.
Definition: statusservice.h:50
void deviceLedFlashed()
This signal is emitted when device's LED has flashed in response to a write of the Flash LED characte...
void deviceCharacteristicsRead(const StatusService::DeviceCharacteristics &characteristics)
This signal is emitted when the Device Characteristics characteristic has been read successfully.
void deviceNameRead(const QString &deviceName)
This signal is emitted when the Device Name characteristic has been read successfully.
Characteristics available via the Pokit Status service.
Definition: statusservice.h:32
static const QBluetoothUuid name
UUID of the Pokit Status service's Device Name characterstic.
Definition: statusservice.h:35
static const QBluetoothUuid deviceCharacteristics
UUID of the Pokit Status service's Device Characteristics characterstic.
Definition: statusservice.h:33
static const QBluetoothUuid flashLed
UUID of the Pokit Status service's Flash LED characterstic.
Definition: statusservice.h:36
static const QBluetoothUuid status
UUID of the Pokit Status service's Status characterstic.
Definition: statusservice.h:34
Attributes included in the Device Characteristics characterstic.
Definition: statusservice.h:39
quint16 maximumCurrent
Device's maximum input current.
Definition: statusservice.h:42
quint16 maximumSamplingRate
Device's maximum sampling rate.
Definition: statusservice.h:44
quint16 samplingBufferSize
Device's sampling buffer size.
Definition: statusservice.h:45
quint16 maximumVoltage
Device's maximum input voltage.
Definition: statusservice.h:41
quint16 capabilityMask
Reserved.
Definition: statusservice.h:46
QBluetoothAddress macAddress
Device's MAC address.
Definition: statusservice.h:47
quint16 maximumResistance
Device's maximum input resistance.
Definition: statusservice.h:43
QVersionNumber firmwareVersion
Device's major and minor firmware version.
Definition: statusservice.h:40
UUIDs of the "Pokit Status" service.
Definition: statusservice.h:27
static const QBluetoothUuid pokitPro
UUID of the Pokit Pro's Pokit Status service.
Definition: statusservice.h:29
static const QBluetoothUuid pokitMeter
UUID of the Pokit Meter's Pokit Status service.
Definition: statusservice.h:28
Attributes included in the Status characterstic.
Definition: statusservice.h:71
float batteryVoltage
Current battery voltage level.
Definition: statusservice.h:73
DeviceStatus deviceStatus
Current Pokit device status.
Definition: statusservice.h:72
BatteryStatus batteryStatus
Logical interpretation the battery voltage level.
Definition: statusservice.h:74