CreatorCreator
Home
Getting Started
  • 中文简体
  • English
Home
Getting Started
  • 中文简体
  • English
  • Creator

    • Getting Started
  • Stream Dock

    • Plugin SDK
    • Icon Pack

      • Overview
      • Terminology
      • Creating an Icon Pack
      • Icon Specifications
    • Scene Configuration

      • What is a Scenario Configuration?
      • Exporting
      • Use Cases
  • mPanel

    • Plugin SDK
  • Linux StreamDock SDK

    • Cpp SDK

      • Overview
      • Dependency
      • Device Manager
      • StreamDock Base Class
      • StreamDock293
      • Communication transmission
      • Example
      • Source code
    • Python SDK

      • Overview
      • Dependency
      • DeviceManager
      • StreamDock Base Class
      • StreamDock293
      • Example
      • Source Code
  • Windows StreamDock SDK

    • WebSocket SDK

      • Overview
      • Getting Started
      • Events to Send
      • Received Events
    • Cpp SDK

      • Overview
      • Dependency
      • Device manager
      • StreamDock Base Class
      • StreamDock293
      • Transport
      • Example
      • Source Code
  • Support

    • Help and Bug Reporting

DeviceManager

The central device manager is used to povenrate all the connected StreamDock devices. This type of instance must be created to detect and use the StreamDock device.

Create a new StreamDock DeviceManager to detect the connected StreamDock device.

DeviceManager *manager = new DeviceManager();

enumerate()

Detect the connected StreamDock device.

Returns a List that contains all connected streamdock devices.

map<char *,streamDock *> StreamDocks = manager->enumerate();

listen()

Surveillance whether there is a new device connection or a device disconnected

std::thread t(&DeviceManager::listen, manager);
Last Updated:
Contributors: Heart
Prev
Dependency
Next
StreamDock Base Class