zoukankan      html  css  js  c++  java
  • 笔记


      /*String hexString = Integer.toHexString((byte) bytes[2] & 0x00FF);
         String string = new BigInteger(hexString,16).toString();
         Integer wifiHotCount = Integer.valueOf(string);
      //获取wifi热点数据
        for (int i = 1; i <= wifiHotCount; i++) {
        for (int j = 0; j < 7; j++) {
         if (Integer.toHexString(bytes[s] & 0x00FF).length() == 1) {
          if (j != 6)
           wifiHot += "0" + Integer.toHexString(bytes[s] & 0x00FF) + ":";
          if (j == 6) {
           wifiHot = wifiHot.substring(0, wifiHot.length() - 1);
           wifiHot += "," + Integer.toHexString(bytes[s] & 0x00FF)+";";
          }
          s = s + 1;
         } else {
          if (j != 6)
           wifiHot += Integer.toHexString(bytes[s] & 0x00FF) + ":";
          if (j == 6) {
           wifiHot = wifiHot.substring(0, wifiHot.length() - 1);
           wifiHot += "," + Integer.toHexString(bytes[s] & 0x00FF)+";";
          }
          s = s + 1;
         }
     
        }
       //String kString=wifiHot;
       //wifiHot="";
       // System.out.println(kString);
      }*/
     /*  wl = wifiHot.substring(0, wifiHot.length() - 1);
       //获取mccmnc对应的十进制数
       int mccmncStart=10+(wifiHotCount-1)*7+8;
       int i=mccmncStart;
       String mcc="";
       String mnc="";
       while(i<=mccmncStart+1){
        if(Integer.toHexString(bytes[i] & 0x00FF).length()==1){
         mcc +="0"+Integer.toHexString(bytes[i] & 0x00FF);
             }
        else{mcc+=Integer.toHexString(bytes[i] & 0x00FF);}
       i++;
       }
       mcc=new BigInteger(mcc, 16).toString();//获取mcc对应的10进制数
       mnc=new BigInteger(Integer.toHexString(bytes[mccmncStart+2] & 0x00FF), 16).toString();//获取mnc对应的10进制数
      
      
      
      
      
      
       System.out.println(mcc);
       System.out.println(mnc);
    */
     

  • 相关阅读:
    img标签中alt属性与title属性在seo的作用-摘自网友
    C# 从补码中获取有符号数的实际数值
    you need to load the kernel first
    桌面远程访问
    供应商通过向日葵访问公司外网办公电脑,通过办公电脑访问内网内生产用电脑
    配置交换机口可以上外网
    抠图和不失真的改变图形大小
    用机房现有双网口电脑添加监控
    服务器配置IP
    在DELL服务器上安装windows2012 r2服务器系统
  • 原文地址:https://www.cnblogs.com/wth21-1314/p/7561113.html
Copyright © 2011-2022 走看看