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

StreamDock293

streamDock293 inherits from streamDock class

Get the firmware version of the device

/*
@note: Get the firmware version of the device
@param lenth: The length of the firmware version
@return Returns the first address of the array where the firmware version number is stored. If an error occurs, it returns null
*/
unsigned char *getFirmVersion(int lenth );

Set the brightness of the device screen


/*
@note: Set the brightness of the device screen. If the value passed in is less than 0, the value will be pulled back to 0. If it is greater than 100, it will be pulled back to 100
@param percent: Brightness value 1-100
@return Success returns 0. If an error occurs, it returns -1
*/
int setBrightness(int percent);

Set the background image of the device screen


/*
@note: Set the background image of the device screen
@param path: The path of the image
@return Success returns 1, if an error returns -1
*/
int setBackgroundImg(std::string path);

Receive information sent by the device


/*
@note: Receive information sent by the device
@return Success returns the first address of the array obtained, if an error returns NULL
*/
unsigned char * read();

Set the icon of the device button

/*
@note: Set the icon of the device button
@param path: The path of the image
@return Success returns 1, if an error returns -1
*/
int setKeyImg(std::string path,int key);
Last Updated:
Contributors: Heart
Prev
StreamDock Base Class
Next
Communication transmission