『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: lijunxiong2006

【经济实惠】使用ESP32追踪设备实现回家离家自动化

  [复制链接]

13

主题

127

帖子

1018

积分

金牌会员

Rank: 6Rank: 6

积分
1018
金钱
891
HASS币
0
发表于 2024-5-24 20:02:36 | 显示全部楼层
XCray 发表于 2021-9-1 09:39
又多了一个新选择,新鲜出炉的,ESP32-MQTT-Bluetooth-Monitor,这次是monitor脚本的移植方案——通过name ...

一直编译不成功,不晓得啥情况。
回复

使用道具 举报

13

主题

127

帖子

1018

积分

金牌会员

Rank: 6Rank: 6

积分
1018
金钱
891
HASS币
0
发表于 2024-5-24 20:04:10 | 显示全部楼层
wuyouning 发表于 2022-12-7 19:33
后面才发现大神把文件都放好了,走了一堆冤枉路,感谢大神的文章,现在愉快解决问题了~ ...

安卓手机是不是没法用这个
回复

使用道具 举报

4

主题

104

帖子

393

积分

中级会员

Rank: 3Rank: 3

积分
393
金钱
289
HASS币
0
发表于 2024-5-27 03:13:48 | 显示全部楼层
gmmy1979 发表于 2024-5-24 20:04
安卓手机是不是没法用这个

没安卓手机,没测试过,不好意思啦
回复

使用道具 举报

1

主题

60

帖子

266

积分

中级会员

Rank: 3Rank: 3

积分
266
金钱
206
HASS币
0
发表于 2024-10-11 21:12:38 | 显示全部楼层
学习学习,先mark。感谢分享
回复

使用道具 举报

4

主题

32

帖子

180

积分

注册会员

Rank: 2

积分
180
金钱
148
HASS币
0
发表于 2024-11-19 17:11:36 | 显示全部楼层
为什么我一直编译不成功?
C:\Users\FJ\Desktop\ESP\ESP32\esp_ble_tracker\esp_ble_tracker\tracker\TrackerI\TrackerI.ino:119:1: error: 'BLEScan' does not name a type
  119 | BLEScan* trackerBLEScan;
      | ^~~~~~~
C:\Users\FJ\Desktop\ESP\ESP32\esp_ble_tracker\esp_ble_tracker\tracker\TrackerI\TrackerI.ino: In function 'void initBLEScan()':
C:\Users\FJ\Desktop\ESP\ESP32\esp_ble_tracker\esp_ble_tracker\tracker\TrackerI\TrackerI.ino:320:3: error: 'BLEDevice' has not been declared
  320 |   BLEDevice::init("");
      |   ^~~~~~~~~
C:\Users\FJ\Desktop\ESP\ESP32\esp_ble_tracker\esp_ble_tracker\tracker\TrackerI\TrackerI.ino:321:3: error: 'trackerBLEScan' was not declared in this scope
  321 |   trackerBLEScan = BLEDevice::getScan();
      |   ^~~~~~~~~~~~~~
C:\Users\FJ\Desktop\ESP\ESP32\esp_ble_tracker\esp_ble_tracker\tracker\TrackerI\TrackerI.ino:321:20: error: 'BLEDevice' has not been declared
  321 |   trackerBLEScan = BLEDevice::getScan();
      |                    ^~~~~~~~~
C:\Users\FJ\Desktop\ESP\ESP32\esp_ble_tracker\esp_ble_tracker\tracker\TrackerI\TrackerI.ino: In function 'void startBLEScan()':
C:\Users\FJ\Desktop\ESP\ESP32\esp_ble_tracker\esp_ble_tracker\tracker\TrackerI\TrackerI.ino:373:3: error: 'BLEScanResults' was not declared in this scope
  373 |   BLEScanResults foundDevices = trackerBLEScan->start(BLE_SCAN_TIME, false);
      |   ^~~~~~~~~~~~~~
C:\Users\FJ\Desktop\ESP\ESP32\esp_ble_tracker\esp_ble_tracker\tracker\TrackerI\TrackerI.ino:374:21: error: 'foundDevices' was not declared in this scope
  374 |   int deviceCount = foundDevices.getCount();
      |                     ^~~~~~~~~~~~
C:\Users\FJ\Desktop\ESP\ESP32\esp_ble_tracker\esp_ble_tracker\tracker\TrackerI\TrackerI.ino:380:5: error: 'BLEAdvertisedDevice' was not declared in this scope
  380 |     BLEAdvertisedDevice bleAdvertisedDevice = foundDevices.getDevice(i);
      |     ^~~~~~~~~~~~~~~~~~~
C:\Users\FJ\Desktop\ESP\ESP32\esp_ble_tracker\esp_ble_tracker\tracker\TrackerI\TrackerI.ino:382:7: error: 'BLEAddress' was not declared in this scope; did you mean 'IPAddress'?
  382 |       BLEAddress bleAddress = bleAdvertisedDevice.getAddress();
      |       ^~~~~~~~~~
      |       IPAddress
C:\Users\FJ\Desktop\ESP\ESP32\esp_ble_tracker\esp_ble_tracker\tracker\TrackerI\TrackerI.ino:383:37: error: 'bleAddress' was not declared in this scope; did you mean 'IPAddress'?
  383 |       if (btm_ble_addr_resolvable(*(bleAddress.getNative()), userDeviceInfos[j].irk)) {
      |                                     ^~~~~~~~~~
      |                                     IPAddress
C:\Users\FJ\Desktop\ESP\ESP32\esp_ble_tracker\esp_ble_tracker\tracker\TrackerI\TrackerI.ino:392:3: error: 'trackerBLEScan' was not declared in this scope
  392 |   trackerBLEScan->clearResults();
      |   ^~~~~~~~~~~~~~
Multiple libraries were found for "BLEScan.h"
  Used: C:\Users\FJ\Documents\Arduino\libraries\ESP32_BLE_Arduino
  Not used: C:\Users\FJ\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.7\libraries\BLE
exit status 1

Compilation error: 'BLEScan' does not name a type
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-27 04:15 , Processed in 0.049638 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表