Documentation ¶
Index ¶
Constants ¶
View Source
const AnyAppID = 0
AnyAppID is a special app ID that can be used to indicate that any app ID should be accepted when connecting to a Robot.
Variables ¶
This section is empty.
Functions ¶
func GenerateAppID ¶
GenerateAppID generates a random app ID suitable to be used for Robomaster applications.
func SimpleEncryptDecrypt ¶
func SimpleEncryptDecrypt(data []byte)
SimpleEncryptDecrypt encrypts or decrypts a byte slice using a simple algorithm. In other words:
SimpleEncryptDecrypt(SimpleEncryptDecrypt(data)) == data
This is used, for example, for the broadcast message sent by the robot when trying to pair with an app.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.