DHT11_Api:可以返回DHT11传感器数据的RESTful API,以及一个Android应用-源码

上传者: 42125192 | 上传时间: 2021-09-07 16:01:26 | 文件大小: 155KB | 文件类型: ZIP
DHT11_Api RESTful api可以返回DHT11传感器的数据,而android应用程序可以使用它。 服务器端(RPi) 档案:server.py在Raspberry Pi上运行此python脚本。切记更改GPIO / IP /端口。 示例网址 http://192.168.1.138:5001/api/v1/temp+hum 退货样品 {"humidity":83,"temperature":30} 客户端 Android客户端 可以与server.py一起使用的android应用。访问文件夹以获取更多信息。 iOS客户端 还没有。

文件下载

资源详情

[{"title":"( 45 个子文件 155KB ) DHT11_Api:可以返回DHT11传感器数据的RESTful API,以及一个Android应用-源码","children":[{"title":"DHT11_Api-master","children":[{"title":"requirements.txt <span style='color:#111;'> 226B </span>","children":null,"spread":false},{"title":"AndroidClient","children":[{"title":"gradlew <span style='color:#111;'> 5.17KB </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 48B </span>","children":null,"spread":false},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.properties <span style='color:#111;'> 232B </span>","children":null,"spread":false},{"title":"gradle-wrapper.jar <span style='color:#111;'> 53.06KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"README.md <span style='color:#111;'> 655B </span>","children":null,"spread":false},{"title":"gradlew.bat <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false},{"title":"gradle.properties <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 215B </span>","children":null,"spread":false},{"title":"app","children":[{"title":"src","children":[{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"txwstudio","children":[{"title":"app","children":[{"title":"dht11client","children":[{"title":"ExampleInstrumentedTest.kt <span style='color:#111;'> 685B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"txwstudio","children":[{"title":"app","children":[{"title":"dht11client","children":[{"title":"ExampleUnitTest.kt <span style='color:#111;'> 353B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 951B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.51KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 5.21KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 10.40KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 16.18KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.81KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 7.30KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-anydpi-v26","children":[{"title":"ic_launcher.xml <span style='color:#111;'> 272B </span>","children":null,"spread":false},{"title":"ic_launcher_round.xml <span style='color:#111;'> 272B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.57KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 3.31KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable","children":[{"title":"ic_launcher_background.xml <span style='color:#111;'> 5.47KB </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"fragment_weather.xml <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-v24","children":[{"title":"ic_launcher_foreground.xml <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"colors.xml <span style='color:#111;'> 207B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 74B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 531B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.72KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 11.59KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"txwstudio","children":[{"title":"app","children":[{"title":"dht11client","children":[{"title":"service","children":[{"title":"DHT11Service.kt <span style='color:#111;'> 879B </span>","children":null,"spread":false}],"spread":false},{"title":"ui","children":[{"title":"weather","children":[{"title":"WeatherViewModel.kt <span style='color:#111;'> 732B </span>","children":null,"spread":false},{"title":"WeatherFragment.kt <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"MainActivity.kt <span style='color:#111;'> 716B </span>","children":null,"spread":false},{"title":"model","children":[{"title":"SensorData.kt <span style='color:#111;'> 107B </span>","children":null,"spread":false},{"title":"WeatherJson.kt <span style='color:#111;'> 504B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 2.57KB </span>","children":null,"spread":false},{"title":"proguard-rules.pro <span style='color:#111;'> 750B </span>","children":null,"spread":false}],"spread":true},{"title":"build.gradle <span style='color:#111;'> 796B </span>","children":null,"spread":false}],"spread":true},{"title":"server.py <span style='color:#111;'> 785B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 517B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 3.55KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明