Package ej.ecom.wifi

Enum WifiCapability

    • Enum Constant Detail

      • BOTH_EXCLUSIVE

        public static final WifiCapability BOTH_EXCLUSIVE
        The Wi-Fi module can act as a client and as an access point but not at the same time.
      • BOTH_SIMULTANEOUS

        public static final WifiCapability BOTH_SIMULTANEOUS
        The Wi-Fi module can act as a client and as an access point at the same time.
      • CLIENT

        public static final WifiCapability CLIENT
        It is possible to join an existing wireless networks. The Wi-Fi module acts as a client.
      • SOFT_AP

        public static final WifiCapability SOFT_AP
        It is possible to create a new wireless network. The Wi-Fi module acts as an access point.
    • Method Detail

      • values

        public static WifiCapability[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (WifiCapability c : WifiCapability.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static WifiCapability valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null