# FRIOT **Repository Path**: frsf/FRIOT ## Basic Information - **Project Name**: FRIOT - **Description**: SpringCloud IOT Cloud Platform - **Primary Language**: Java - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-23 - **Last Updated**: 2024-09-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FRIOT

JDK SpringBoot SpringCloud SpringCloudAlibaba
MySQL Redis EMQX RabbitMQ Nacos

#### 介绍 在校工作室方向及二份实习都从事物联网应用开发学习,对于阿里云IOT平台及公司自研的物联网平台稍底层的实现有着较大的兴趣,于是作为毕业设计选题。尝试实现一个基于SpringCloud的物联网平台Demo ,因时间有限,目前只实现了基本的架构及功能,对于用户认证中心及三方Starter,后续会继续完善。 #### 项目说明 - SpringCloud IOT Cloud Platform - 参考开源项目:https://gitee.com/beecue/fastbee.git - 前端地址:https://gitee.com/frsf/friot-admin/tree/cloud - 前端分支:cloud #### 后端架构 framework #### 目录架构 ```text FRIOT: │ ├─data 项目数据文件 │ │ │ ├─nacos 配置中心文件 │ │ │ └─readme 说明文档图片 │ ├─friot-feign 远程调用模块 │ ├─friot-gateway 微服务网关 │ ├─friot-model POJO模块 │ ├─friot-service 微服务父模块 │ │ │ ├─friot-cloud 物联网微服务 │ │ │ └─friot-user 用户认证服务 │ ├─friot-utils 工具类模块 │ └─other ├─friot-spring-boot-starter 三方集成Starter │ └─web-demo 三方模拟项目 ``` #### 安装说明 1. 配置好项目所属的中间件 2. 导入FRIOT/data/nacos中的配置文件,替换xxxx为你的中间件地址 3. 启动前后端项目即可 #### 功能列表 ##### 首页 main ##### 设备模型绑定 bind ##### MQTT配置信息 mqtt ##### 上层应用接入 FRIOT/other/friot-spring-boot-starter -> install
FRIOT/other/web-demo(Demo工程,用于模拟三方接入) -> add dependency ```xml top.frsf friot-spring-boot-starter 1.0-SNAPSHOT ``` FRIOT/other/web-demo/.../application.yml -> token: 云平台生成token ```text friot: token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9 ``` FRIOT/other/web-demo/.../Service.java -> 对接业务层依赖注入 ```java @RestController @RequestMapping("/test") public class TestController { /** * Starter提供的接口 */ @Resource private IDeviceClient deviceClient; @GetMapping("/temperature") public Result temperature() { return deviceClient.listThingsByCondition("3280769025986002951","temperature",5); } @GetMapping("/humidity") public Result humidity() { return deviceClient.listThingsByCondition("3280769025986002951","humidity",5); } } ``` ##### 上层接入测试 模拟数据
local
MQTT发送消息
send
平台接入数据
connect