当前位置:首页 > 单片机 > 单片机
[导读]说起单片机wifi控制app,单片机方机的资料还容易找,对于app资料网上可以找得到的资料不多,就是找到了,也就是个APP,单片机wifi控制app配套的单片机C语言程序及手机APP源代码一般的都无法找得到,资料不全,给使用

说起单片机wifi控制app,单片机方机的资料还容易找,对于app资料网上可以找得到的资料不多,就是找到了,也就是个APP,单片机wifi控制app配套的单片机C语言程序及手机APP源代码一般的都无法找得到,资料不全,给使用带来很大困难。目前,单片机wifi控制app,目前最常见到的是安桌手机的app,其编程用得比较多的是JAVA语言写的,其开发环境是Eclipse,对于基英语基础不好的人来说,比较容易上手的就是易语言编程环境E4A。这里我就贴出一个Eclipse开发环境下写的wifi控制app,下面是APP界面截图:


实物照片(照片中的APP是E4A写的,单片机的代码是一样的)

布局文件:

xmlns:tools="http://schemas.android.com/tools"

xmlns:android1="http://schemas.android.com/apk/res/android"

android:layout_width="match_parent"

android:layout_height="match_parent"

tools:context=".ESP8266" >

android:id="@+id/textView1"

style="text-align:center"

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:layout_marginTop="16dp"

android:gravity="center"

android:scrollHorizontally="true"

android:text="@string/ljzt"

android:textAppearance="?android:attr/textAppearanceLarge" />

android:id="@+id/button1"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_alignParentLeft="true"

android:layout_below="@+id/textView1"

android:layout_marginLeft="16dp"

android:layout_marginTop="19dp"

android:minWidth="128dip"

android:scrollHorizontally="true"

android:text="@string/open" />

android:id="@+id/Button02"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_below="@+id/button1"

android:layout_marginLeft="16dp"

android:layout_marginTop="50dp"

android:minWidth="128dip"

android:scrollHorizontally="true"

android:text="K1开" />

android:id="@+id/Button03"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_below="@+id/button1"

android:layout_marginLeft="170dp"

android:layout_marginTop="50dp"

android:minWidth="128dip"

android:scrollHorizontally="true"

android1:text="K1关" />

android:id="@+id/Button04"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_alignLeft="@+id/Button02"

android:layout_below="@+id/Button02"

android:layout_marginTop="36dp"

android:minWidth="128dip"

android:scrollHorizontally="true"

android:text="K2开" />

android:id="@+id/Button06"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_alignLeft="@+id/Button04"

android:layout_below="@+id/Button04"

android:layout_marginTop="36dp"

android:minWidth="128dip"

android:scrollHorizontally="true"

android:text="K3开" />

android:id="@+id/Button07"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_below="@+id/Button05"

android:layout_marginLeft="170dp"

android:layout_marginTop="36dp"

android:minWidth="128dip"

android:scrollHorizontally="true"

android:text="K3关" />

android:id="@+id/Button05"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_below="@+id/Button02"

android:layout_marginLeft="170dp"

android:layout_marginTop="36dp"

android:minWidth="128dip"

android:scrollHorizontally="true"

android:text="K2关" />

android:id="@+id/Button01"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_below="@+id/textView1"

android:layout_marginLeft="170dp"

android:layout_marginTop="19dp"

android1:layout_alignParentLeft="true"

android:minWidth="128dip"

android:scrollHorizontally="true"

android:text="@string/close" />

android1:id="@+id/TextView02"

style="text-align:center"

android1:layout_width="wrap_content"

android1:layout_height="wrap_content"

android1:layout_alignParentLeft="true"

android1:layout_alignParentRight="true"

android1:layout_below="@+id/Button07"

android:layout_marginTop="35dp"

android1:gravity="center"

android1:text="@string/ggnr3"

android1:textAppearance="?android:attr/textAppearanceLarge" />

JV语言:

package com.example.esp8266_gpio;

import java.io.IOException;

import java.io.PrintStream;

imp

本站声明: 本文章由作者或相关机构授权发布,目的在于传递更多信息,并不代表本站赞同其观点,本站亦不保证或承诺内容真实性等。需要转载请联系该专栏作者,如若文章内容侵犯您的权益,请及时联系本站删除。
换一批
延伸阅读

12月10日消息,今日,百度宣布将于12月27日发布元宇宙产品“希壤”,届时百度Create 2021(百度 AI 开发者大会)将在希壤App举办。

关键字: 百度 元宇宙 app

安卓音响相位测试软件,音响相位测试仪app 有没有简单测声压的app?

关键字: 测试 app

虚拟主机做app服务器,虚拟主机能装app吗

关键字: 主机 app

当今,随着人脸识别技术的不断发展,人脸识别被应用到了很多领域中来。然而,人脸识别技术的滥用会带来存在很多隐患,人脸识别技术切不可滥用。

关键字: 人脸识别 人工智能 app

在印尼,有这么一家本地独角兽公司,做出了一个脑洞大开的APP,这家公司名为Gojek。Gojek在印尼的地位大致相当于我们国内支付宝+美团+饿了么+滴滴+携程+58同城+淘票票的综合体,而且这些功能都集成在一个APP里,...

关键字: app 互联网

当今,一提到人脸识别相信很多人都不会感到陌生。当前,有越来越多的人使用了人脸识别。然而,我们在使用人脸识别前切不可忽略其安全隐患。

关键字: 人脸识别 app 信息

不得不说,人脸识别技术确实可以给我们的生活带来很大的便利。然而,我们也不得不承认人脸识别存在信息泄露等问题。

关键字: 人脸识别 信息 app

当今,随着物联网、大数据、云计算、人工智能等新一代信息技术的快速发展,人脸识别技术得到了飞快的发展。人脸识别存在很大的优势和商用价值。

关键字: 人脸识别 信息 app

三方机构Mixpanel的统计数字显示,截止10月27日,iOS 14的份额达到了46.07%,几乎看齐iOS 13的46.57%,实现反超几乎就是一眨眼的工夫。

关键字: ios14 ios13 app

映博智能一直以来都十分重视对科技的创新和发展,不断推动机器人行业的发展。映博智能推出的安保巡逻机器人吸引了很多人的眼球。

关键字: 机器人 智能 app
关闭
关闭