TeslasuitDocumentation
APIs

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:

get_mapping(self)#

Retrieves the mapping according to the device type and version.

Returns:

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.


Explore these references and guides to deepen your understanding of TsDevice and the subsystems it exposes:

Essential API references#

Practical guides & examples#

Deeper dives & broader concepts#

  • Teslasuit Main Concepts: Fundamental articles covering Teslasuit's core technology and how its subsystems interact.