88 virtual const std::wstring&
name()
const override
108 virtual int rssi()
const override
Definition of the PixelInfo class.
Common accessible values between Pixel advertised data and a connected Pixel.
Definition: PixelInfo.h:20
std::chrono::system_clock::time_point Date
Type for a system Date.
Definition: PixelInfo.h:27
Data periodically emitted by a Pixel when not connected to a device.
Definition: ScannedPixel.h:59
ScannedPixelData data
The raw data of the instance.
Definition: ScannedPixel.h:71
virtual ~ScannedPixel()=default
Default virtual destructor.
virtual int currentFace() const override
Gets the Pixel face value that is currently facing up.
Definition: ScannedPixel.h:128
virtual bluetooth_address_t address() const override
Gets the Bluetooth address of the Pixel.
Definition: ScannedPixel.h:78
virtual int batteryLevel() const override
Gets the Pixel battery level (percentage).
Definition: ScannedPixel.h:113
virtual const std::wstring & name() const override
Gets the Pixel name.
Definition: ScannedPixel.h:88
virtual PixelRollState rollState() const override
Gets the Pixel roll state.
Definition: ScannedPixel.h:123
virtual pixel_id_t pixelId() const override
Gets the unique Pixel id of the die.
Definition: ScannedPixel.h:83
ScannedPixel(const ScannedPixelData &data)
Initializes a new instance of ScannedPixel with the given data.
Definition: ScannedPixel.h:62
virtual PixelDesignAndColor designAndColor() const override
Gets the design and color of the Pixel.
Definition: ScannedPixel.h:98
virtual Date firmwareDate() const override
Gets the firmware build date of the Pixel.
Definition: ScannedPixel.h:103
virtual bool isCharging() const override
Indicates whether the Pixel battery is charging or not. Set to 'true' if fully charged but still on c...
Definition: ScannedPixel.h:118
virtual int rssi() const override
Gets the last RSSI value measured by the Pixel.
Definition: ScannedPixel.h:108
virtual bluetooth_address_t systemId() const override
Gets the unique id assigned by the OS to Pixel Bluetooth peripheral.
Definition: ScannedPixel.h:73
virtual int ledCount() const override
Gets the number of LEDs of the Pixel.
Definition: ScannedPixel.h:93
A collection of C++ classes and types to scan for and connect to Pixels dice.
Definition: Helpers.h:13
PixelRollState
Pixel roll states.
Definition: PixelTypes.h:45
PixelDesignAndColor
Available combinations of Pixel designs and colors.
Definition: PixelTypes.h:27
uint32_t pixel_id_t
Type for a Pixel Id.
Definition: PixelTypes.h:23
Systemic::BluetoothLE::bluetooth_address_t bluetooth_address_t
Type for a Bluetooth address.
Definition: PixelInfo.h:16
Data for ScannedPixel class.
Definition: ScannedPixel.h:18
int currentFace
The Pixel face value that is currently facing up.
Definition: ScannedPixel.h:54
bool isCharging
Definition: ScannedPixel.h:48
PixelRollState rollState
The Pixel roll state.
Definition: ScannedPixel.h:51
pixel_id_t pixelId
The unique Pixel id of the device.
Definition: ScannedPixel.h:26
PixelInfo::Date Date
Type for a system Date.
Definition: ScannedPixel.h:20
Date firmwareDate
The firmware build date of the Pixel.
Definition: ScannedPixel.h:38
int batteryLevel
The Pixel battery level (percentage).
Definition: ScannedPixel.h:44
std::wstring name
The Pixel name.
Definition: ScannedPixel.h:29
PixelDesignAndColor designAndColor
The Pixel design and color.
Definition: ScannedPixel.h:35
int ledCount
The number of LEDs of the Pixel.
Definition: ScannedPixel.h:32
int rssi
The last RSSI value measured by this Pixel.
Definition: ScannedPixel.h:41
bluetooth_address_t address
The Bluetooth address for the Pixel.
Definition: ScannedPixel.h:23