|
@@ -1,6 +1,6 @@
|
|
|
# IOT 服务端
|
|
# IOT 服务端
|
|
|
[使用aedes作为MQTT服务](https://github.com/moscajs/aedes#readme)
|
|
[使用aedes作为MQTT服务](https://github.com/moscajs/aedes#readme)
|
|
|
-[使用fastiry作为http服务](https://github.com/fastify/fastify)
|
|
|
|
|
|
|
+[使用fastify作为http服务](https://github.com/fastify/fastify)
|
|
|
[使用sqlite3作为数据存储](https://github.com/TryGhost/node-sqlite3)
|
|
[使用sqlite3作为数据存储](https://github.com/TryGhost/node-sqlite3)
|
|
|
服务框架使用http+mqtt+sqlite3,以轻量化为目的。整个原理采用IM群聊方式进行设备管理
|
|
服务框架使用http+mqtt+sqlite3,以轻量化为目的。整个原理采用IM群聊方式进行设备管理
|
|
|
1. 设备:
|
|
1. 设备:
|
|
@@ -22,7 +22,7 @@
|
|
|
5. 控制设备时,需要下发设备唯一ID
|
|
5. 控制设备时,需要下发设备唯一ID
|
|
|
6. 在登录的管理中可以对房间设备进行控制,如打开或关闭某个设备,以登录管理员进行指令下发
|
|
6. 在登录的管理中可以对房间设备进行控制,如打开或关闭某个设备,以登录管理员进行指令下发
|
|
|
3. 服务端
|
|
3. 服务端
|
|
|
- 1. 主动对连接设备进行管理号的订阅,方便后面统计设备状态,修改wifi(感觉这个功能没有作用如果能连上WiFi这里就不用配置如果连不上就直接下发不了) 信息等
|
|
|
|
|
|
|
+ 1. 主动对连接设备进行管理号的订阅,方便后面统计管理设备
|
|
|
2. 增加http-jwt鉴权
|
|
2. 增加http-jwt鉴权
|
|
|
3. splite3
|
|
3. splite3
|
|
|
1. 存储房间,设备,日志等相关数据
|
|
1. 存储房间,设备,日志等相关数据
|