# WeiChuang-SmartHome
一个智能家具控制器iOS客户端。适用于其他项目。
使用AsyncSocket通信。
[Android客户端](https://github.com/YinTokey/WeiChuangSmartHome)
## 测试方法:
可以手机端下载一个tcp通信软件(appstore上搜socket下载),设置其为服务器,然后电脑和手机端共用一个wifi。模拟器打开应用,点击右上角Setting设置ip和端口,连接服务器(ip和端口信息使用tcp通信软件设置为服务器的时候,会显示)。第一次使用的时候,点击登录界面下方的Register now完成一个简单的注册就可以进入。
自己项目要用类似功能时,只要修改一下发送的消息字符,即可。
## 实际项目应用举例:
带Android系统的服务端,通过编程设置被接入的端口号,通过I/O口连接电灯之类的硬件模块。服务端上对I/O编程:当接收到来自客户端的“xx”字符,xx号I/O口置高电平or低电平。客户端连接上服务端的热点,设置服务端提供的端口以及服务端自身的IP。点击相应按钮就可以给服务端发送字符了。
### 发送说明:(大写字母表示开,小写字母关)
开(ON) 关(OFF)
#### 客厅
灯光 A a
窗帘 D d
空调 E e
监控 G g
电视 H h
空调+ I
空调- J
#### 卧室
灯光 B b
窗帘 K k
空调 L l
监控 M m
电视 N n
空调+ O
空调- P
#### 浴室
灯光 C c
窗帘 Q q
空调 R r
热水器 S s
电视 T t
空调+ U
空调- V
#### switch按钮界面
蜂鸣警报 F f
阳台灯光 W w
走廊灯光 X x
电饭锅 Y y
所有灯 Z z
没有合适的资源?快使用搜索试试~ 我知道了~
智能家居遥控器 iOS端
共129个文件
png:43个
json:41个
m:18个
需积分: 14 14 下载量 36 浏览量
2018-06-05
20:29:52
上传
评论 1
收藏 5.42MB ZIP 举报
温馨提示
带Android系统的服务端,通过编程设置被接入的端口号,通过I/O口连接电灯之类的硬件模块。服务端上对I/O编程:当接收到来自客户端的“xx”字符,xx号I/O口置高电平or低电平。客户端连接上服务端的热点,设置服务端提供的端口以及服务端自身的IP。点击相应按钮就可以给服务端发送字符了。
资源推荐
资源详情
资源评论
收起资源包目录
智能家居遥控器 iOS端 (129个子文件)
AsyncSocket.h 29KB
MBProgressHUD.h 16KB
AsyncUdpSocket.h 14KB
MBProgressHUD+CZ.h 641B
User.h 360B
SendTool.h 325B
SqliteTool.h 302B
ConsoleViewController.h 268B
AppDelegate.h 264B
SleepViewController.h 260B
BathViewController.h 258B
HomeViewController.h 258B
RegisterViewController.h 237B
SettingViewController.h 234B
ViewController.h 223B
Contents.json 1KB
Contents.json 1KB
Contents.json 313B
Contents.json 312B
Contents.json 312B
Contents.json 311B
Contents.json 311B
Contents.json 311B
Contents.json 310B
Contents.json 310B
Contents.json 309B
Contents.json 309B
Contents.json 308B
Contents.json 308B
Contents.json 308B
Contents.json 307B
Contents.json 307B
Contents.json 307B
Contents.json 306B
Contents.json 306B
Contents.json 306B
Contents.json 306B
Contents.json 306B
Contents.json 305B
Contents.json 305B
Contents.json 305B
Contents.json 304B
Contents.json 304B
Contents.json 303B
Contents.json 303B
Contents.json 302B
Contents.json 302B
Contents.json 302B
Contents.json 302B
Contents.json 302B
Contents.json 302B
Contents.json 301B
Contents.json 301B
Contents.json 301B
Contents.json 301B
Contents.json 62B
AsyncSocket.m 122KB
AsyncUdpSocket.m 65KB
MBProgressHUD.m 31KB
BathViewController.m 5KB
SleepViewController.m 5KB
HomeViewController.m 5KB
ConsoleViewController.m 4KB
ViewController.m 4KB
RegisterViewController.m 3KB
MBProgressHUD+CZ.m 2KB
SendTool.m 2KB
SqliteTool.m 2KB
SettingViewController.m 2KB
AppDelegate.m 2KB
SplashUITests.m 1KB
SplashTests.m 883B
User.m 355B
main.m 321B
README.md 2KB
project.pbxproj 33KB
Info.plist 1KB
Info.plist 733B
Info.plist 733B
xcschememanagement.plist 658B
splash.png 2.7MB
login.png 709KB
backip.png 641KB
userback.png 567KB
airup.png 58KB
lightbutton.png 57KB
airtempuptouch.png 53KB
airtempdowntouch.png 53KB
monitoron.png 53KB
wateron.png 51KB
certainon.png 46KB
tvon.png 45KB
airdown.png 22KB
airtempup.png 22KB
airtempdown.png 22KB
monitoroff.png 21KB
lightbuttonoff.png 19KB
tvoff.png 18KB
wateroff.png 16KB
aircontrolon.png 15KB
共 129 条
- 1
- 2
资源评论
x_uhen
- 粉丝: 188
- 资源: 193
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功