# DTU **Repository Path**: runawayzzz/dtu ## Basic Information - **Project Name**: DTU - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: shijiabao - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-14 - **Last Updated**: 2021-11-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 项目文件规范: 首行: /* * Copyright (c) 2016-2020, Chengdu RST technology co., ltd * * Change Logs: * Date Author Notes * 2020-11-30 xxxxxx the first version */ 函数注释: /** * This function will calculate the tick from millisecond. * * @param ms the specified millisecond * - Negative Number wait forever * - Zero not wait * - Max 0x7fffffff * * @return the calculated tick */ 行注释: /* XXXXX */ 变量命名以及函数命名: xxxx_xxxx 项目开发流程: git获取到master 建立自己需要开发功能的分支 开发功能完毕,提交合并请求 合并完毕,新建分支机继续开发 git相关功能代码: 克隆:git clone + 链接 拉取:git pull 推送:git push 查看当前分支:git branch 创建分支:git branch 分支名 切换分支:git checkout 分支名 参考链接:https://www.cnblogs.com/onelikeone/p/6857910.html 开发日志: (1) 2021.10.19 14:40:修复tcp连接错误,修改模块启动方式,因为模块断电会对flash造成损伤,修改成通过pwrkey控制开关机。 (2) 2021.10.19 15:57:修复mqtt连接错误(不能在mqtt的函数内给设备参数结构体赋值,负责不能连接网络);添加mqtt设备状态发送线程;添加mqtt连接状态获取函数;重启设备判断为在连接开始的200s后检测所有连接的状态。 (3) 2021.10.19 17:52:mqtt上位机指令解析初步实现(reboot/upgrade) (4) 2021.10.21 16:17:mqtt 上位机config update指令实现完成