• 大小: 1.67MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-07
  • 语言: Java
  • 标签: lua  androi  java  

资源简介

硬件使用NodeMcu(集成了ESP8266),采集温湿度数据。上传到本地服务器,将数据保存到数据库中,请自己根据JavaBean对象建立MySql数据库。移动端请求服务器数据,在app端显示。

资源截图

代码片段和文件信息

package com.example.smarthomedemo;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
 * Instrumented test which will execute on an Android device.
 *
 * @see Testing documentation
 */
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
    @Test
    public void useAppContext() {
        // Context of the app under test.
        Context appContext = InstrumentationRegistry.getTargetContext();

        assertEquals(“com.example.smarthomedemo“ appContext.getPackageName());
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-03-02 11:24  SmartHomeDemo-master\
     目录           0  2019-03-02 11:24  SmartHomeDemo-master\NodeMcu\
     文件        2036  2019-03-02 11:24  SmartHomeDemo-master\NodeMcu\init.lua
     文件      643072  2019-03-02 11:24  SmartHomeDemo-master\NodeMcu\nodemcu-master-13-modules-2019-01-18-01-33-19-float.bin
     文件          23  2019-03-02 11:24  SmartHomeDemo-master\README.md
     目录           0  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\
     文件         176  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\.gitignore
     目录           0  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\.idea\
     目录           0  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\.idea\codestyles\
     文件        1775  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\.idea\codestyles\Project.xml
     文件         626  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\.idea\gradle.xml
     文件        2116  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\.idea\misc.xml
     文件         564  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\.idea\runConfigurations.xml
     目录           0  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\app\
     文件           7  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\app\.gitignore
     文件        1022  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\app\build.gradle
     文件         751  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\app\proguard-rules.pro
     目录           0  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\app\src\
     目录           0  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\app\src\androidTest\
     目录           0  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\app\src\androidTest\java\
     目录           0  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\app\src\androidTest\java\com\
     目录           0  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\app\src\androidTest\java\com\example\
     目录           0  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\app\src\androidTest\java\com\example\smarthomedemo\
     文件         734  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\app\src\androidTest\java\com\example\smarthomedemo\ExampleInstrumentedTest.java
     目录           0  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\app\src\main\
     文件         787  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\app\src\main\AndroidManifest.xml
     目录           0  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\app\src\main\java\
     目录           0  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\app\src\main\java\com\
     目录           0  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\app\src\main\java\com\example\
     目录           0  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\app\src\main\java\com\example\smarthomedemo\
     文件        3827  2019-03-02 11:24  SmartHomeDemo-master\android-SmartHomeDemo\app\src\main\java\com\example\smarthomedemo\MainActivity.java
............此处省略81个文件信息

评论

共有 条评论