资源简介

客户端是android项目,通过蓝牙读取硬件最新的温度数据上传服务器,并且其他端app可以查看动态显示最新的温度信息。服务器是用java写的,主要作用时广播温度数据,实现其他设备实时显示最新温度信息

资源截图

代码片段和文件信息


import java.io.*;
import java.util.HashSet;

/**
 * Author:liujinyong
 * Date:2019/4/20
 * Time:11:53
 */
public class CustomCl extends ClassLoader {
    private String basedir;
    private HashSet dynaclazns;
    public CustomCl(String basedir String[] clazns) throws Exception {
        super(null);//指定父类加载器为null
        this.basedir = basedir;
        dynaclazns = new HashSet<>();
        loadClassByMe(clazns);
    }

    private void loadClassByMe(String[] clazns) throws Exception {
        for(int i=0;i            loadDirectly(clazns[i]);
            dynaclazns.add(clazns[i]);
        }
    }

    private Class loadDirectly(String name) throws Exception {
        Class cls = null;
        StringBuilder sb = new StringBuilder(basedir);
        String class

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-07-03 10:40  temperature-master\
     文件         296  2019-07-03 10:40  temperature-master\USR-TCP232-Test.cfg
     文件     1029632  2019-07-03 10:40  temperature-master\USR-TCP232-Test.exe
     目录           0  2019-07-03 10:40  temperature-master\client\
     目录           0  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\
     文件         124  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\.gitignore
     文件         163  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\README.md
     目录           0  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\
     文件           7  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\.gitignore
     文件           0  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\app-release.apk
     文件        1807  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\build.gradle
     目录           0  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\libs\
     文件       30042  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\libs\notificationlog-0.1.0.jar
     文件         908  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\proguard-rules.pro
     目录           0  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\release\
     文件     3134404  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\release\app-release.apk
     文件         234  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\release\output.json
     目录           0  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\release\test\
     文件        1768  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\release\test\CustomCl.java
     文件         173  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\release\test\Foo.java
     文件         577  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\release\test\HotswapTest.java
     目录           0  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\src\
     目录           0  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\src\androidTest\
     目录           0  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\src\androidTest\java\
     目录           0  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\src\androidTest\java\ljy\
     目录           0  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\src\androidTest\java\ljy\bluetooth\
     文件         730  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\src\androidTest\java\ljy\bluetooth\ExampleInstrumentedTest.java
     目录           0  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\src\main\
     文件        3732  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\src\main\AndroidManifest.xml
     目录           0  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\src\main\assets\
     文件         188  2019-07-03 10:40  temperature-master\client\Bluetooth-Pair\app\src\main\assets\litepal.xml
............此处省略1151个文件信息

评论

共有 条评论