ZTDevice
Instance of peripheral device
-
Device identifier
-
CBPeripheral
-
Mock peripheral
-
Serial number
-
Device name (optional)
-
-
Most recent RSSI value
-
Mac address obtained from Advertisement Data.
-
Mac address obtained from QR Code.
-
Advertisement data
-
Device manufacturer data
-
Device hardware revision
-
Device firmware revision
-
Device model number
-
UUID of device
-
Is device connected
-
Is activity running
-
All Device information characteristics are read and device is connected
-
Device information
-
Battery level
-
Last time of Device activity
-
General state of device received from ZT_NOTIFY_DATA
-
Software information received from ZT_NOTIFY_DATA
-
Activity information received from ZT_NOTIFY_DATA
-
Bootloader information received from ZT_NOTIFY_DATA
-
Inactivity timeout message received from ZT_NOTIFY_DATA
-
Actual state received from MSG_GENERAL_STATES in ZT_NOTIFY_DATA
-
previous state received from MSG_GENERAL_STATES in ZT_NOTIFY_DATA
-
If update is available at once after connectWithCode Don’t use it to check for new firmware update - use method
ZTApi.shared.checkFirmwareUpdate
-
State Changed
-
RSSI change observed
-
Service discovered observer
-
Service features identified observer
-
Characteristic discover observer
-
Observer to notify all characteristics are discovered so device can accept commands
-
Observer to notify all characteristics were read
-
Characteristic value updated observer
-
Characteristic value written observer
-
ZT_COMMANDS characteristic discover observer (used to send commands)
-
ZT_NOTIFY value observer
-
Device battery characteristic was read
-
ZT_NOTIFY - MSG_GENERAL_STATES changed observer
-
Device activity information was updated
-
ZT_NOTIFY - MSG_SOFTWARE was updated
-
ZT_NOTIFY - MSG_TIME was updated
-
ZT_NOTIFY - MSG_ACTIVITY_METADATA was updated
-
ZT_NOTIFY - MSG_RAWDATA_HEADER was updated
-
ZT_NOTIFY - MSG_RAWDATA_FRAME was updated
-
ZT_NOTIFY - MSG_DEBUG was updated
-
Notify when firmware is different on both modules
-
ZT_NOTIFY value observer for Common group messages for all products General state of device is updated after it is called
-
ZT_NOTIFY value observer for Warm product
-
ZT_NOTIFY value observer for Running product
-
ZT_NOTIFY value observer for Cycling product
-
ZT_NOTIFY value observer for Safety product
-
ZT_NOTIFY value observer for Generic product
-
ZT_NOTIFY command value observer
-
ZT_NOTIFY command acknowledged response observer
-
ZT_INDICATE value observer
-
MSG_BTLOADER_INFO observer
-
Initializer for
ZTDevice
- ZTParameters:
- peripheral:
CBPeripheral
- manager:
ZTBleManager
- peripheral:
- ZTParameters:
-
-
Connect device
-
Disconnect device
-
Get setvice by type or UUID
-
Check battery level for both shoes
-
Update general and actual state for shoes
-
Send command to ZT_COMMANDS chracteristic
-
Send command to ZT_COMMANDS chracteristic with aknowledge
-