Library Search
结果页可燃气体传感器技术参考手册
在 技术栈 中找到 8 个匹配结果。
技术栈
技术栈
8 个 ROS 2 class TempSensorNode(Node):
def __init__(self):
super().__init__('temp_sensor')
# 声明参数(可运行时覆盖)
self.declare_parameter('sensor_id', 'sensor_01')
self.declare_parame… 2% ESP-IDF /* ═══════════════════════════════════════════
* Core 1 任务:传感器采集与 WiFi
* ═══════════════════════════════════════════ */
void sensor_task(void *pvParameters) {
sensor_data_t data;
uint32_t se… 2% Three.js // 渲染器
const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.setPixelRatio(window.devicePixelRatio);
document… 2% InfluxDB # 2. 访问 http://localhost:3000(默认 admin/admin)
# 3. Add data source → InfluxDB
# - Query Language: Flux
# - URL: http://influxdb:8086
# - Organization: my-org
# - Token: my-token
# 4. 创建 Da… 2% Arduino // ── 引脚定义 ──
#define DHTPIN 2
#define DHTTYPE DHT22
#define BTN_PIN 3
#define OLED_ADDR 0x3C
#define SCREEN_W 128
#define SCREEN_H 64
// ── 对象 ──
DHT dht(DHTPIN, DHTTYPE);
Adafr… 2% MQTT 协议 # MQTT Python 客户端:温度传感器发布与订阅
## 目标
使用 paho-mqtt 库实现一个模拟温度传感器的 Publisher 和监控终端的 Subscriber,理解 MQTT 发布/订阅模式、QoS 和遗嘱消息。
## 前提
```bash
# 启动本地 Broker
mosquitto -v -p 1883 &
# 安装 Python 库
pip install p… 2% Requests 参考文献:
[
{
"url": "https://requests.readthedocs.io/",
"type": "web",
"year": 2024,
"title": "Requests 官方文档",
"authors": [
"Kenneth Reitz & Community"
]
},
{
"url… 1% Scikit-learn 参考文献:
[
{
"url": "https://scikit-learn.org/stable/user_guide.html",
"type": "web",
"year": 2024,
"title": "Scikit-learn User Guide",
"authors": [
"Scikit-learn Developers"… 1%