1 Star 0 Fork 0

jdhxyy / outdoor_temperature_detection

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

南京室外温度检测服务

介绍

本节点为海萤物联网提供南京室外温度检测服务。具体位置是南京市江北新区。

本节点是一个设备,esp32板子外接ds18b20传感器。这个传感器是防水的,放在室外,所以能够检测室外温度。

输入图片说明

本节点地址

0x2141000000010001

服务

服务号 服务
1 读取南京室外温度

读取南京室外温度

  • CON请求:空

  • ACK应答:

字段 字节数
带符号温度值.分度0.1摄氏度 2

应答的是字节流,大端格式。温度分度是0.1摄氏度,所以假设两个字节是0x00 0xe8,则对应的温度是0x00e8=232=23.2摄氏度。

温度值是带符号的数,所以如果温度大于0x8000,则温度为负数。C语言直接使用int16_t强制转换即可,其他语言可以使用0x10000-温度值算出温度值。 比如温度值0xff18,使用0x10000-0xff18=232,所以温度是-23.2摄氏度。

MIT License Copyright (c) 2021 jdhxyy Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

南京室外温度检测器 展开 收起
Python
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/jdhxyy/outdoor_temperature_detection.git
git@gitee.com:jdhxyy/outdoor_temperature_detection.git
jdhxyy
outdoor_temperature_detection
outdoor_temperature_detection
master

搜索帮助