Device
The Device module provides functions for connecting to TESLASUIT devices, subscribing to connections and disconnections of TESLASUIT devices, retrieving device information, and controlling the device.
Note. Since TsDevice is the main entry point for interacting with a Teslasuit device, it must be instantiated before accessing any subsystems.
Class TsDevice#
Handles the connection, control, and information retrieval for a Teslasuit device. This class also provides access to various subsystems such as motion capture, haptics, and biometry.
Attributes#
-
device_uuid: UUID of the device.
-
mocap: TsMocap class that provides access to the motion capture subsystem.
-
ppg: TsPpg class that provides access to the PPG subsystem.
-
haptic: TsHapticPlayer class that provides access to the haptic subsystem.
Class methods#
get_device_ssid(self)#Retrieves the SSID of the device.
Returns:
list: SSID of the device.
get_device_serial(self)#Retrieves the serial number of the device.
Returns:
str: Serial number of the device.
get_product_type(self)#Retrieves the product type of the device.
Returns:
TsDeviceType: Product type of the device.
get_mapping(self)#Retrieves the mapping according to the device type and version.
Returns:
TsMapping2D: Mapping of the device.
Subsystems#
The TsDevice class provides access to the following subsystems:
Notes Each subsystem requires an active connection to a Teslasuit device. Refer to the respective subsystem documentation for more details.
What to read next#
Explore these references and guides to deepen your understanding of TsDevice and the subsystems it exposes:
Essential API references#
- API: Device Manager: Obtain
TsDeviceinstances from connected devices. - API: Core Data Structures: Reference for
TsDeviceType,TsMapping2D, and the other types returned by device methods. - Haptic subsystem, Mocap, PPG: The three main subsystem references accessible from a device.
Practical guides & examples#
- Getting Started: Connect a device and access your first subsystem.
- Examples Overview: Step-by-step code samples covering common device workflows.
Deeper dives & broader concepts#
- Teslasuit Main Concepts: Fundamental articles covering Teslasuit's core technology and how its subsystems interact.
