首页 > 解决方案 > 使用传感器 HTS221 通过蓝牙从 nRF 51822 读取温度

问题描述

我正在尝试从这个小传感器读取温度https://www.aliexpress.com/item/temperature-sensor-and-humanity-sensor-HTS221/32953862359.html?spm=a2g0s.9042311.0.0.e3534c4dT9GRz3

There are 4 GattServices available
GattService 00001800-0000-1000-8000-00805f9b34fb - Generic Access
here are characteristics: 
00002a00-0000-1000-8000-00805f9b34fb Device Name
00002a01-0000-1000-8000-00805f9b34fb Appearance
00002a04-0000-1000-8000-00805f9b34fb Peripheral Preferred Connection Parameters

GattService 00001801-0000-1000-8000-00805f9b34fb - Generic Attribute
no characteristics
GattService 0000180a-0000-1000-8000-00805f9b34fb - Device Information
here is characteristic:
00002a29-0000-1000-8000-00805f9b34fb Manufacturer Name String
GattService 6e400000-b5a3-f393-e0a9-e50e24dcca9e - ???

看起来HTS221默认不发送数据,我应该怎么做才能读取温度?

标签: bluetoothbluetooth-gatt

解决方案


推荐阅读