设备网络SDK开发使用手册


<WirelessServer version="2.0">
  <wifiApEnabled>
    <!--req,xs:boolean,"true,false", 是否启用无线AP-->
  </wifiApEnabled>
  <broadcastEnabled>
    <!--req,xs:boolean,"true,false", 是否启用广播-->
  </broadcastEnabled>
  <wlanShareEnabled>
    <!--req,xs:boolean,"true,false", 是否启用共享-->
  </wlanShareEnabled>
  <ssid min="" max="">
    <!--req, xs:string, SSID -->
  </ssid>
  
  <WirelessSecurity>
    <!--opt, 无线安全加密参数-->
    <securityMode opt="disable,WEP,WPA-personal,WPA2-personal,WPA-RADIUS,WPA-enterprise,WPA2-enterprise">
      <!--opt, xs:string,-->
    </securityMode>
    <WEP>
      <!--dep, depends on <securityMode>, WEP加密参数-->
      <authenticationType opt="open,sharedkey,auto">
        <!--req, xs:string, "", 身份验证类型-->
      </authenticationType>
      <defaultTransmitKeyIndex min="" max="">
        <!--req, xs:integer, 默认传输密钥个数-->
      </defaultTransmitKeyIndex>
      <wepKeyLength opt="64,128">
        <!--opt, xs:integer “64,128”, 密钥长度类型-->
      </wepKeyLength>
      <keyType>ASC,HEX</keyType>
      <ASCKeyList>
        <!--dep, depends on <keyType>, 密钥类型-->
        <ASCIIKey>ascii format</ASCIIKey>
      </ASCKeyList>
      <EncryptionKeyList size="">
        <!--dep, depends on <keyType>, WEP加密密钥-->
        <encryptionKey>
          <!--req, xs:hexBinary, WEP encryption key in hexadecimal format -->
        </encryptionKey>
      </EncryptionKeyList>
    </WEP>
    <WPA>
      <!--dep, depends on <securityMode>, WPA加密参数-->
      <algorithmType opt="TKIP,AES,TKIP/AES">
        <!--req, xs:string, “TKIP,AES,TKIP/AES”, 算法类型-->
      </algorithmType>
      <sharedKey>
        <!--opt, xs:string, pre-shared key used in WPA, WPA共享密钥-->
      </sharedKey>
      <wpaKeyLength min="" max="">
        <!--opt, xs: integer, “8-63”, WPA共享密钥长度-->
      </wpaKeyLength>
      <defaultPassword>
        <!--opt,xs:boolen, 是否启用默认WPA密钥-->
      </defaultPassword>
    </WPA>
  </WirelessSecurity>

  <!-- req -->
  <DHCPEnabled>
    <!--req,xs:boolean,"true,false", 是否启用DHCP-->
  </DHCPEnabled>
  <ipVersion opt="v4,v6">
    <!-- req, xs:string-->
  </ipVersion>
  <HostIpAddress>
    <!--req, 主机IP地址-->
    <ipAddress>
      <!--dep, xs:string -->
    </ipAddress>
    <ipv6Address>
      <!--dep, xs:string -->
    </ipv6Address>
  </HostIpAddress>
  <IPMask>
    <!--req, IP地址掩码 -->
    <subnetMask>
      <!--dep, xs:string, subnet mask for IPv4 address -->
    </subnetMask>
    <bitMask>
      <!--dep, xs:integer, bitmask IPv6 address -->
    </bitMask>
  </IPMask>
  <AddressPool>
    <!--req, IP段-->
    <startIPV4Address>
      <!--dep, xs:string -->
    </startIPV4Address>
    <endIPV4Address>
      <!--dep, xs:string -->
    </endIPV4Address>
    <startIPV6Address>
      <!--dep, xs:string -->
    </startIPV6Address>
    <endIPV6Address>
      <!--dep, xs:string -->
    </endIPV6Address>
  </AddressPool>
  <DNSAddressList size="2">
    <!--req-->
    <DNSAddress>
      <!--req, DNS服务器地址-->
      <id>
        <!--req,xs:string,start from 1-->
      </id>
      <ipAddress>
        <!--dep, xs:string -->
      </ipAddress>
      <ipv6Address>
        <!--dep, xs:string -->
      </ipv6Address>
    </DNSAddress>
  </DNSAddressList>
  <GatewayAddress>
    <!--req, 网关-->
    <ipAddress>
      <!--dep, xs:string -->
    </ipAddress>
    <ipv6Address>
      <!--dep, xs:string -->
    </ipv6Address>
  </GatewayAddress>
  <isMutexWithWireless>
    <!--opt,xs:boolean,"true,false", 能力集互斥,表示如果开了wifi就必须关了热点,反之亦然-->
  </isMutexWithWireless>
</WirelessServer>