# Namespace hcap.network

hcap.network

- Defined in: hcap-1.24.6.5901.js

Namespace Summary
Constructor Attributes | Constructor Name and Description
--- | ---
| hcap.network

## Method Summary

## Namespace Detail

hcap.network

## Method Detail

- <static> hcap.network.asyncPing(param)
  Sends a asynchronous ping command to the specified IP.

      hcap.network.asyncPing({
           "ip" : "192.168.100.1",
           "onSuccess" : function(s) {
               console.log("onSuccess");
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });

  Parameters:
  {Object} param
    - {String} param.ip [Required] - IP address of the ping target.
    - {Function} param.onSuccess [Optional] - success callback function.

            param.onSuccess = function (param) {
                // No Parameter
            }

    - {Function} param.onFailure [Optional] - failure callback function.

            param.onFailure = function (param) {
                // {String} param.errorMessage - in case of failure, this message provides the details.
            }

  Since:
    1.22.0
  See:
    {Event} ping_result_received
- <static> hcap.network.getAuxLanId(param)
  Gets the current value of the aux lan id.

      hcap.network.getAuxLanId({
           "onSuccess" : function(s) {
               console.log("onSuccess : aux lan id = " + s.auxLanId);
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });

  Parameters:
  {Object} param
    - {Function} param.onSuccess [Optional] - success callback function.

            param.onSuccess = function (param) {
                // {Number} param.auxLanId - current value of the aux lan id (1~4094).
            }

    - {Function} param.onFailure [Optional] - failure callback function.

            param.onFailure = function (param) {
                // {String} param.errorMessage - in case of failure, this message provides the details.
            }

  Since:
    1.22.0
  See:
    hcap.network.setVlanIdMode()
    hcap.network.getVlanIdMode()
    hcap.network.setLanId()
    hcap.network.getLanId()
    hcap.network.setAuxLanId()
- <static> hcap.network.getBlockedPortList(param)
  Gets the blocked port list.

      hcap.network.getBlockedPortList({
           "onSuccess" : function(s) {
               console.log("onSuccess : blockedPortList length = " + s.blockedPortList.length);
               for (var i = 0; i < s.blockedPortList.length; i++) {
                   console.log(
                       "list[" + i + "].blockedPort = " + s.list[i].blockedPort +
                       "list[" + i + "].protocol = " + s.list[i].protocol +
                       "list[" + i + "].direction = " + s.list[i].direction
                   );
               }
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });

  Parameters:
  {Object} param
    - {Function} param.onSuccess [Optional] - success callback function.

            param.onSuccess = function (param) {
                // {Array} param.blockedPortList - list of blocked port.
                // {String} param.blockedPortList[].blockedPort - blocked port number
                // {String} param.blockedPortList[].protocol - protocol
                // {String} param.blockedPortList[].direction - blocking direction
            }

    - {Function} param.onFailure [Optional] - failure callback function.

            param.onFailure = function (param) {
                // {String} param.errorMessage - in case of failure, this message provides the details.
            }

  Since:
    1.24.0
  See:
    hcap.network.setBlockedPortList()
- <static> hcap.network.getLanId(param)
  Gets the current value of the lan id.

      hcap.network.getLanId({
           "onSuccess" : function(s) {
               console.log("onSuccess : lan id = " + s.lanId);
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });

  Parameters:
  {Object} param
    - {Function} param.onSuccess [Optional] - success callback function.

            param.onSuccess = function (param) {
                // {Number} param.lanId - current value of the lan id (1~4094).
            }

    - {Function} param.onFailure [Optional] - failure callback function.

            param.onFailure = function (param) {
                // {String} param.errorMessage - in case of failure, this message provides the details.
            }

  Since:
    1.22.0
  See:
    hcap.network.setVlanIdMode()
    hcap.network.getVlanIdMode()
    hcap.network.setLanId()
    hcap.network.setAuxLanId()
    hcap.network.getAuxLanId()
- <static> hcap.network.getNetworkDevice(param)
  Gets the details of network device connected to TV.

      function print_current_mac(ip) {
          hcap.network.getNumberOfNetworkDevices({
               "onSuccess" : function(s) {
                   console.log("onSuccess : the number of network devices = " + s.count);
                   for (var i = 0; i < s.count; i++) {
                       (function(k) {
                           hcap.network.getNetworkDevice({
                               "index" : k,
                               "onSuccess" : function(r) {
                                   console.log("onSuccess : networkMode = " + r.networkMode +
                                       "\n name = " + r.name +
                                       "\n mac = " + r.mac +
                                       "\n dhcp = " + r.dhcp +
                                       "\n ip = " + r.ip +
                                       "\n gateway = " + r.gateway +
                                       "\n netmask = " + r.netmask +
                                       "\n primary dns = " + r.primaryDns +
                                       "\n secondary dns = " + r.secondaryDns);
                                   if (ip === r.ip) {
                                       console.log("CURRENT MAC : " + r.mac);
                                   }
                               },
                               "onFailure" : function(r) {
                                   console.log("onFailure : errorMessage = " + r.errorMessage);
                               }
                           });
                       })(i);
                   }
               },
               "onFailure" : function(f) {
                   console.log("onFailure : errorMessage = " + f.errorMessage);
               }
          });
      }

      hcap.network.getNetworkInformation({
           "onSuccess" : function(s) {
               console.log("onSuccess : network_mode = " + s.network_mode +
                   "\n ssid = " + s.ssid +
                   "\n eth_speed = " + s.eth_speed +
                   "\n eth_duplex = " + s.eth_duplex +
                   "\n local_network_available = " + s.local_network_available +
                   "\n internet_available = " + s.internet_available +
                   "\n wifi_mode = " + s.wifi_mode +
                   "\n wireless_security_type = " + s.wireless_security_type +
                   "\n wifi_pass_key = " + s.wifi_pass_key +
                   "\n using_dhcp = " + s.using_dhcp +
                   "\n ip_address = " + s.ip_address +
                   "\n subnet_mask = " + s.subnet_mask +
                   "\n gateway = " + s.gateway +
                   "\n dns1_address = " + s.dns1_address +
                   "\n dns2_address = " + s.dns2_address +
                   "\n dns_dhcp = " + s.dns_dhcp +
                   "\n ethernet_plugged = " + s.ethernet_plugged +
                   "\n wifi_plugged = " + s.wifi_plugged +
                   "\n dhcp_state = " + s.dhcp_state);
               print_current_mac(s.ip_address);
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });

  Parameters:
  {Object} param
    - {Number} param.index [Required] - index of device connected. Starts from 0.
    - {Function} param.onSuccess [Optional] - success callback function.

            param.onSuccess = function (param) {
                // {Number} param.networkMode - network mode (wire or wireless) of the network device. (hcap.network.NetworkMode)
                // {String} param.name - name of network device. ex) "eth0"
                // {String} param.mac - MAC address of network device. ex) "ff:ee:dd:cc:bb:aa"
                // {Boolean} param.dhcp - DHCP (true : DHCP, false : not DHCP)
                // {String} param.ip - IP of network device. ex) "192.168.100.2"
                // {String} param.gateway - gateway of network device. ex) "192.168.100.1"
                // {String} param.netmask - netmask address of network device. ex) "255.255.255.0"
                // {String} param.primaryDns - DNS (Domain Name Server) address. ex) "8.8.8.8"
                // {String} param.secondaryDns - secondary DNS address. ex) "8.8.8.8"
            }

    - {Function} param.onFailure [Optional] - failure callback function.

            param.onFailure = function (param) {
                // {String} param.errorMessage - in case of failure, this message provides the details.
            }

  Since:
    1.3.1
  See:
    hcap.network.getNumberOfNetworkDevices()
    hcap.network.NetworkMode.WIRE
    hcap.network.NetworkMode.WIRELESS
    hcap.network.setNetworkDevice()
- <static> hcap.network.getNetworkInformation(param)
  Gets the network information.

      hcap.network.getNetworkInformation({
           "onSuccess" : function(s) {
               console.log("onSuccess : network_mode = " + s.network_mode +
                   "\n ssid = " + s.ssid +
                   "\n eth_speed = " + s.eth_speed +
                   "\n eth_duplex = " + s.eth_duplex +
                   "\n local_network_available = " + s.local_network_available +
                   "\n internet_available = " + s.internet_available +
                   "\n wifi_mode = " + s.wifi_mode +
                   "\n wireless_security_type = " + s.wireless_security_type +
                   "\n wifi_pass_key = " + s.wifi_pass_key +
                   "\n using_dhcp = " + s.using_dhcp +
                   "\n ip_address = " + s.ip_address +
                   "\n subnet_mask = " + s.subnet_mask +
                   "\n gateway = " + s.gateway +
                   "\n dns1_address = " + s.dns1_address +
                   "\n dns2_address = " + s.dns2_address +
                   "\n dns_dhcp = " + s.dns_dhcp +
                   "\n ethernet_plugged = " + s.ethernet_plugged +
                   "\n wifi_plugged = " + s.wifi_plugged +
                   "\n dhcp_state = " + s.dhcp_state);
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });

  Parameters:
  {Object} param
    - {Function} param.onSuccess [Optional] - success callback function.

            param.onSuccess = function (param) {
                // {Number} param.network_mode - wire or wireless (hcap.network.NetworkMode)
                // {String} param.ssid - ssid for wireless AP
                // {Number} param.eth_speed - network speed (Mbps), auto-negotiation data
                // {Number} param.eth_duplex - network duplex(half : 0, full : 1, fail : -1), auto-negotiation data
                // {Boolean} param.local_network_available - if connected to gateway of AP
                // {Boolean} param.internet_available - if connected to Internet
                // {Number} param.wifi_mode - INFRA or Ad-hoc (hcap.network.WirelessMode)
                // {Number} param.wireless_security_type - security types (hcap.network.WifiSecurityType)
                // {String} param.wifi_pass_key - security key string. This value is not delivered to HCAP application by LG security policy since 1.18.4.
                // {Boolean} param.using_dhcp - if using dhcp
                // {String} param.ip_address - ip address
                // {String} param.subnet_mask - subnet mask
                // {String} param.gateway - gateway adress
                // {String} param.dns1_address - main DNS address
                // {String} param.dns2_address - secondary DNS address
                // {Boolean} param.dns_dhcp - DNS dhcp flag
                // {Boolean} param.ethernet_plugged - if ethernet cable is plugged
                // {Boolean} param.wifi_plugged - if Wi-Fi dongle is plugged
                // {Number} param.dhcp_state - dhcp status (hcap.network.DhcpState)
            }

    - {Function} param.onFailure [Optional] - failure callback function.

            param.onFailure = function (param) {
                // {String} param.errorMessage - in case of failure, this message provides the details.
            }

  Since:
    1.6.0
  See:
    {Event} network_event_received
- <static> hcap.network.getNumberOfNetworkDevices(param)
  Gets the number of network devices.

      hcap.network.getNumberOfNetworkDevices({
           "onSuccess" : function(s) {
               console.log("onSuccess : the number of network devices = " + s.count);
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });

  Parameters:
  {Object} param
    - {Function} param.onSuccess [Optional] - success callback function.

            param.onSuccess = function (param) {
                // {Number} param.count - number of network devices connected to TV.
            }

    - {Function} param.onFailure [Optional] - failure callback function.

            param.onFailure = function (param) {
                // {String} param.errorMessage - in case of failure, this message provides the details.
            }

  Since:
    1.3.1
  See:
    hcap.network.getNetworkDevice()
    hcap.network.setNetworkDevice()
- <static> hcap.network.getSoftAP(param)
  Gets the configuration of soft AP (Access Point).

      hcap.network.getSoftAP({
           "onSuccess" : function(s) {
               console.log("onSuccess : ip = " + s.ip + ", mac = " + s.mac + ", connected device = " + s.connectedDeviceNumber + ", channel = " + s.channel + ", signal strength = " + s.signalStrength + ", vland id = " + s.vlanId + ", vlan subnet = " + s.vlanSubnet + ", vlan gateway = " + s.vlanGateway);
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });

  Parameters:
  {Object} param
    - {Function} param.onSuccess [Optional] - success callback function.

            param.onSuccess = function (param) {
                // {String} param.ip - IP address of soft AP ("xxx.xxx.xxx.xxx"). available only when property "soft_ap" is "1".
                // {String} param.mac - MAC address of soft AP ("XX:XX:XX:XX:XX:XX"). available only when property "soft_ap" is "1".
                // {Number} param.connectedDeviceNumber - the number of connected devices to soft AP. available only when property "soft_ap" is "1".
                // {Number} param.channel - wireless channel (0 : random default. 1 ~ 165. Supported values is dependent on TV model.)
                // {Number} param.signalStrength - 1 ~ 5 (1 : min Tx power, 5 : max Tx power). 0 : [default] follow country setting.
                // {Number} param.vlanId - 1 ~ 4094. 0 : vlan off.
                // {String} param.vlanIp - VLAN IP address ("xxx.xxx.xxx.xxx")
                // {String} param.vlanSubnet - VLAN subnet mask ("xxx.xxx.xxx.xxx")
                // {String} param.vlanGateway - VLAN gateway ("xxx.xxx.xxx.xxx")
                // {String} param.mode - mode ("xxxx")
                // {String} param.securityType - security type ("xxxxx")
                // {String} param.radiusServerIp - radius server IP address ("xxx.xxx.xxx.xxx")
                // {String} param.radiusServerPort - radius server port ("xxxx")
                // {String} param.radiusServerKey - radius server key ("xxxxxxx")
            }

    - {Function} param.onFailure [Optional] - failure callback function.

            param.onFailure = function (param) {
                // {String} param.errorMessage - in case of failure, this message provides the details.
            }

  Since:
    1.19.0
  See:
    hcap.network.setSoftAP()
    hcap.property.getProperty()
- <static> hcap.network.getVlanIdMode(param)
  Gets whether vlan id mode is enabled or disabled.

      hcap.network.getVlanIdMode({
           "onSuccess" : function (param) {
               console.log("onSuccess : vlan id mode= " + param.enable);
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });

  Parameters:
  {Object} param
    - {Function} param.onSuccess [Optional] - success callback function.

            param.onSuccess = function (param) {
                // {Boolean} param.enable - true if the vlan id mode is enabled. false if the vlan id mode is disabled.
            }

    - {Function} param.onFailure [Optional] - failure callback function.

            param.onFailure = function (param) {
                // {String} param.errorMessage - in case of failure, this message provides the details.
            }

  Since:
    1.22.0
  See:
    hcap.network.setVlanIdMode()
    hcap.network.setLanId()
    hcap.network.getLanId()
    hcap.network.setAuxLanId()
    hcap.network.getAuxLanId()
- <static> hcap.network.getWifiDiagnostics(param)
  Gets the wifi diagnostic information.

      hcap.network.getWifiDiagnostics({
           "onSuccess" : function(s) {
               console.log("onSuccess  :" +
                   "\n version                 : " + s.version +
                   "\n country code revision   : " + s.countryCodeRevision +
                   "\n country code            : " + s.countryCode +
                   "\n channel                 : " + s.channel +
                   "\n mcs                     : " + s.mcs +
                   "\n mimo                    : " + s.mimo +
                   "\n rate                    : " + s.rate +
                   "\n rssi                    : " + s.rssi +
                   "\n noise                   : " + s.noise +
                   "\n transimission power     : " + s.transimissionPower +
                   "\n band width              : " + s.bandWidth);
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });

  Parameters:
  {Object} param
    - {Function} param.onSuccess [Optional] - success callback function.

            param.onSuccess = function (param) {
                // {String} param.version - version.
                // {Number} param.countryCodeRevision - country code revision.
                // {String} param.countryCode - country code.
                // {Number} param.channel - channel.
                // {Number} param.mcs - mcs.
                // {String} param.mimo - mimo.
                // {String} param.rate - rate.
                // {String} param.rssi - rssi.
                // {String} param.noise - noise.
                // {String} param.transimissionPower - transimission power.
                // {String} param.bandWidth - band width.
            }

    - {Function} param.onFailure [Optional] - failure callback function.

            param.onFailure = function (param) {
                // {String} param.errorMessage - in case of failure, this message provides the details.
            }

  Since:
    1.19.2
- <static> hcap.network.ping(param)
  Sends a ping command to the specified IP.

      hcap.network.ping({
           "ip" : "192.168.100.1",
           "onSuccess" : function(s) {
               console.log("onSuccess : round trip time = " + s.roundTripTimeInMs);
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });

  Parameters:
  {Object} param
    - {String} param.ip [Required] - IP address of the ping target.
    - {Function} param.onSuccess [Optional] - success callback function.

            param.onSuccess = function (param) {
                // {Number} param.roundTripTimeInMs - round trip time to the target in milliseconds.
            }

    - {Function} param.onFailure [Optional] - failure callback function.

            param.onFailure = function (param) {
                // {String} param.errorMessage - in case of failure, this message provides the details.
            }

  Since:
    1.3.1
- <static> hcap.network.setAuxLanId(param)
  Sets the aux lan id.
  This is worked only when the vlan id mode is enabled.

      hcap.network.setAuxLanId({
           "auxLanId" : 50,
           "onSuccess" : function() {
               console.log("onSuccess");
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });

  Parameters:
  {Object} param
    - {Number} param.auxLanId [Required] - range is 1~4094.
    - {Function} param.onSuccess [Optional] - success callback function.

            param.onSuccess = function() {
                // No Parameter.
            }

    - {Function} param.onFailure [Optional] - failure callback function.

            param.onFailure = function (param) {
                // {String} param.errorMessage - in case of failure, this message provides the details.
            }

  Since:
    1.22.0
  See:
    hcap.network.setVlanIdMode()
    hcap.network.getVlanIdMode()
    hcap.network.setLanId()
    hcap.network.getLanId()
    hcap.network.getAuxLanId()
- <static> hcap.network.setBlockedPortList(param)
  Sets the blocked port list.

      hcap.network.setBlockedPortList({
           "blockedPortList" : [{"blockedPort":"33252", "protocol":"tcp", "direction":"all"},{"blockedPort":"33322", "protocol":"tcp", "direction":"in"},{"blockedPort":"53422", "protocol":"udp", "direction":"out"}],
           "onSuccess" : function() {
               console.log("onSuccess");
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });

  Parameters:
  {Object} param
    - {Array} param.blockedPortList [Required] - blocked port list
    - {String} param.blockedPortList[].blockedPort [Required] - blocked port number( 0~65535 )
    - {String} param.blockedPortList[].protocol [Required] - protocol ( tcp/udp )
    - {String} param.blockedPortList[].direction [Required] - blocking direction( all/in/out )
    - {Function} param.onSuccess [Optional] - success callback function.

            param.onSuccess = function() {
                // No Parameter.
            }

    - {Function} param.onFailure [Optional] - failure callback function.

            param.onFailure = function (param) {
                // {String} param.errorMessage - in case of failure, this message provides the details.
            }

  Since:
    1.24.0
  See:
    hcap.network.getBlockedPortList()
- <static> hcap.network.setLanId(param)
  Sets the lan id.
  This is worked only when the vlan id mode is enabled.

      hcap.network.setLanId({
           "lanId" : 50,
           "onSuccess" : function() {
               console.log("onSuccess");
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });

  Parameters:
  {Object} param
    - {Number} param.lanId [Required] - range is 1~4094.
    - {Function} param.onSuccess [Optional] - success callback function.

            param.onSuccess = function() {
                // No Parameter.
            }

    - {Function} param.onFailure [Optional] - failure callback function.

            param.onFailure = function (param) {
                // {String} param.errorMessage - in case of failure, this message provides the details.
            }

  Since:
    1.22.0
  See:
    hcap.network.setVlanIdMode()
    hcap.network.getVlanIdMode()
    hcap.network.getLanId()
    hcap.network.setAuxLanId()
    hcap.network.getAuxLanId()
- <static> hcap.network.setNetworkDevice(param)
  Sets the network configuration of the index-th (starting with 0) network device

      hcap.network.setNetworkDevice({
           "index" : 0,
           "dhcp" : true,
           "onSuccess" : function() {
               console.log("onSuccess");
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });
      hcap.network.setNetworkDevice({
           "index" : 0,
           "dhcp" : false,
           "ip" : "192.168.100.2",
           "gateway" : "192.168.100.1",
           "netmask" : "255.255.255.0",
           "primaryDns" : "192.168.100.1",
           "secondaryDns" : "8.8.8.8",
           "onSuccess" : function() {
               console.log("onSuccess");
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });

  Parameters:
  {Object} param
    - {Number} param.index [Required] - the index of the network device (starting with 0)
    - {Boolean} param.dhcp [Required] - DHCP (true : DHCP, false : not DHCP)
    - {String} param.ip [Optional] - IP of network device. When param.dhcp is false, it is required. ex) "192.168.100.2"
    - {String} param.gateway [Optional] - gateway of network device. When param.dhcp is false, it is required. ex) "192.168.100.1"
    - {String} param.netmask [Optional] - netmask address of network device. When param.dhcp is false, it is required. ex) "255.255.255.0"
    - {String} param.primaryDns [Optional] - primary DNS (Domain Name Server) address. When param.dhcp is false, it is required. ex) "8.8.8.8"
    - {String} param.secondaryDns [Optional] - secondary DNS (Domain Name Server) address. When param.dhcp is false, it is required. ex) "8.8.8.8"
    - {Function} param.onSuccess [Optional] - success callback function.

            param.onSuccess = function() {
                // No parameter.
            }

    - {Function} param.onFailure [Optional] - failure callback function.

            param.onFailure = function (param) {
                // {String} param.errorMessage - in case of failure, this message provides the details.
            }

  Since:
    1.19.0
  See:
    hcap.network.getNumberOfNetworkDevices()
    hcap.network.getNetworkDevice()
- <static> hcap.network.setSoftAP(param)
  Sets the configuration of soft AP (Access Point).
  Setting is possible only when the property "soft_ap" is "0".
  New configuration will be activated in the next change of the property "soft_ap" from "0" to "1" or reboot.

      // default
      hcap.network.setSoftAP({
           "channel" : 0,
           "signalStrength" : 1,
           "vlanId" : 0,
           "vlanIp" : "192.168.11.3",
           "vlanSubnet" : "255.255.255.0",
           "vlanGateway" : "192.168.11.1",
           "onSuccess" : function(s) {
               console.log("onSuccess");
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });

      // mode : nat, securityType : psk
      hcap.network.setSoftAP({
           "channel" : 3,
           "signalStrength" : 4,
           "vlanId" : 0,
           "vlanIp" : "192.168.11.3",
           "vlanSubnet" : "255.255.255.0",
           "vlanGateway" : "192.168.11.1",
           "mode" : "nat",
           "securityType" : "psk",
           "onSuccess" : function(s) {
               console.log("onSuccess");
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });

      // mode : bridge, securityType : psk
      hcap.network.setSoftAP({
           "channel" : 2,
           "signalStrength" : 0,
           "mode" : "bridge",
           "securityType" : "psk",
           "onSuccess" : function(s) {
               console.log("onSuccess");
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });

      // mode : bridge, securityType : open
      hcap.network.setSoftAP({
           "channel" : 2,
           "signalStrength" : 0,
           "mode" : "bridge",
           "securityType" : "open",
           "onSuccess" : function(s) {
               console.log("onSuccess");
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });

      // mode : bridge, securityType : eap
      hcap.network.setSoftAP({
           "channel" : 2,
           "signalStrength" : 0,
           "radiusServerIp" : "192.168.0.50",
           "radiusServerPort" : "1010",
           "radiusServerPort" : "abcdefg",
           "mode" : "bridge",
           "securityType" : "eap",
           "onSuccess" : function(s) {
               console.log("onSuccess");
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });

  Parameters:
  {Object} param
    // default
    - {Number} param.channel [Required] - wireless channel (0 : random default. 1 ~ 165. Supported values is dependent on TV model.)
    - {Number} param.signalStrength [Required] - 1 ~ 5 (1 : min Tx power, 5 : max Tx power). 0 : [default] follow country setting.
    - {Number} param.vlanId [Required] - 1 ~ 4094. 0 : vlan off.
    - {String} param.vlanIp [Required] - VLAN IP address ("xxx.xxx.xxx.xxx")
    - {String} param.vlanSubnet [Required] - VLAN subnet mask ("xxx.xxx.xxx.xxx")
    - {String} param.vlanGateway [Required] - VLAN gateway ("xxx.xxx.xxx.xxx")
    // mode : nat, securityType : psk
    - {Number} param.channel [Required] - wireless channel (0 : random default. 1 ~ 165. Supported values is dependent on TV model.)
    - {Number} param.signalStrength [Required] - 1 ~ 5 (1 : min Tx power, 5 : max Tx power). 0 : [default] follow country setting.
    - {Number} param.vlanId [Required] - 1 ~ 4094. 0 : vlan off.
    - {String} param.vlanIp [Required] - VLAN IP address ("xxx.xxx.xxx.xxx")
    - {String} param.vlanSubnet [Required] - VLAN subnet mask ("xxx.xxx.xxx.xxx")
    - {String} param.vlanGateway [Required] - VLAN gateway ("xxx.xxx.xxx.xxx")
    - {String} param.mode [Required] - mode ("xxxx")
    - {String} param.securityType [Required] - security type ("xxxxx")
    // mode : bridge, securityType : psk
    - {Number} param.channel [Required] - wireless channel (0 : random default. 1 ~ 165. Supported values is dependent on TV model.)
    - {Number} param.signalStrength [Required] - 1 ~ 5 (1 : min Tx power, 5 : max Tx power). 0 : [default] follow country setting.
    - {String} param.mode [Required] - mode ("xxxx")
    - {String} param.securityType [Required] - security type ("xxxxx")
    // mode : bridge, securityType : open
    - {Number} param.channel [Required] - wireless channel (0 : random default. 1 ~ 165. Supported values is dependent on TV model.)
    - {Number} param.signalStrength [Required] - 1 ~ 5 (1 : min Tx power, 5 : max Tx power). 0 : [default] follow country setting.
    - {String} param.mode [Required] - mode ("xxxx")
    - {String} param.securityType [Required] - security type ("xxxxx")
    // mode : bridge, securityType : eap
    - {Number} param.channel [Required] - wireless channel (0 : random default. 1 ~ 165. Supported values is dependent on TV model.)
    - {Number} param.signalStrength [Required] - 1 ~ 5 (1 : min Tx power, 5 : max Tx power). 0 : [default] follow country setting.
    - {String} param.mode [Required] - mode ("xxxx")
    - {String} param.securityType [Required] - security type ("xxxxx")
    - {String} param.radiusServerIp [Required] - radius server IP address ("xxx.xxx.xxx.xxx")
    - {String} param.radiusServerPort [Required] - radius server port ("xxxx")
    - {String} param.radiusServerKey [Required] - radius server key ("xxxxxxx")
    - {Function} param.onSuccess [Optional] - success callback function.

            param.onSuccess = function() {
                // No Parameter.
            }

    - {Function} param.onFailure [Optional] - failure callback function. If the property "soft_ap" is "1", failure callback will be called.

            param.onFailure = function (param) {
                // {String} param.errorMessage - in case of failure, this message provides the details.
            }

  Since:
    1.19.0
  See:
    hcap.network.getSoftAP()
    hcap.property.getProperty()
- <static> hcap.network.setVlanIdMode(param)
  Sets the vlan id mode is enabled or disabled.

      hcap.network.setVlanIdMode({
           "enable" : true,
           "onSuccess" : function() {
               console.log("onSuccess");
           },
           "onFailure" : function(f) {
               console.log("onFailure : errorMessage = " + f.errorMessage);
           }
      });

  Parameters:
  {Object} param
    - {Boolean} param.enable [Required] - true : enable to vlan id mode, false : disable.
    - {Function} param.onSuccess [Optional] - success callback function.

            param.onSuccess = function() {
                // No Parameter.
            }

    - {Function} param.onFailure [Optional] - failure callback function.

            param.onFailure = function (param) {
                // {String} param.errorMessage - in case of failure, this message provides the details.
            }

  Since:
    1.22.0
  See:
    hcap.network.getVlanIdMode()
    hcap.network.setLanId()
    hcap.network.getLanId()
    hcap.network.setAuxLanId()
    hcap.network.getAuxLanId()
    {Event} ui_value_changed