Class UsageReportingJNI

java.lang.Object
org.wpilib.hardware.hal.JNIWrapper
org.wpilib.hardware.hal.UsageReportingJNI

public class UsageReportingJNI extends JNIWrapper
Usage Reporting JNI Functions.
See Also:
  • "wpi/hal/UsageReporting.h"
  • Method Details

    • report

      public static void report(String resource, String data)
      Reports usage of a resource of interest. Repeated calls for the same resource name replace the previous report.
      Parameters:
      resource - the used resource name
      data - arbitrary associated data string
    • publishCanVersion

      public static int publishCanVersion(int busId, int deviceId, String name, String version)
      Publishes a version for a device on a CAN bus.
      Parameters:
      busId - bus containing the device
      deviceId - device identifier
      name - version name
      version - version string
      Returns:
      status of the operation
    • publishVersion

      public static int publishVersion(String name, String version)
      Publishes a version without a bus or device identifier.
      Parameters:
      name - version name
      version - version string
      Returns:
      status of the operation
    • publishWpilibVersion

      public static int publishWpilibVersion(String version)
      Publishes the WPILib version.
      Parameters:
      version - WPILib version string
      Returns:
      status of the operation