Class DeviceFeatureUtils

java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.utils.DeviceFeatureUtils

public class DeviceFeatureUtils extends Object
  • Constructor Details

    • DeviceFeatureUtils

      public DeviceFeatureUtils()
  • Method Details

    • supportsRelayFeature

      public static boolean supportsRelayFeature(int feature)
      Checks if relay feature is supported by node;
      Parameters:
      feature - 16-bit feature value
      Returns:
      true if relay bit = 1 and false if relay bit = 0
    • supportsProxyFeature

      public static boolean supportsProxyFeature(int feature)
      Checks if proxy feature is supported by node;
      Parameters:
      feature - 16-bit feature value
      Returns:
      true if proxy bit = 1 and false if proxy bit = 0
    • supportsFriendFeature

      public static boolean supportsFriendFeature(int feature)
      Checks if friend feature is supported by node;
      Parameters:
      feature - 16-bit feature value
      Returns:
      true if friend bit = 1 and false if friend bit = 0
    • supportsLowPowerFeature

      public static boolean supportsLowPowerFeature(int feature)
      Checks if low power feature is supported by node;
      Parameters:
      feature - 16-bit feature value
      Returns:
      true if low power bit = 1 and false if low power bit = 0
    • getRelayFeature

      public static int getRelayFeature(int feature)
      Returns the relay feature state value
      Parameters:
      feature - 16-bit feature value
    • getProxyFeature

      public static int getProxyFeature(int feature)
      Returns the proxy feature state value
      Parameters:
      feature - 16-bit feature value
    • getFriendFeature

      public static int getFriendFeature(int feature)
      Returns the friend feature state value
      Parameters:
      feature - 16-bit feature value
    • getLowPowerFeature

      public static int getLowPowerFeature(int feature)
      Returns the low power feature state value
      Parameters:
      feature - 16-bit feature value