Skip to content
项目

SensorsIot/Wi-Fi-Sniffer-as-a-Human-detector

在 GitHub 查看

关于

Code for Youtube video #163

设计与媒体

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Wi-Fi Sniffer as a Human Detector

MIT License GitHub stars YouTube

ESP8266 Arduino MQTT 2.4GHz

Detect human presence by sniffing Wi-Fi probe requests from smartphones and other devices.

⚠️ Note: ESP8266 only supports 2.4GHz Wi-Fi. 5GHz networks are not supported.

📺 Video Tutorial: https://www.youtube.com/watch?v=fmhjtzmLrg8

📦 Dependencies

Install using the Library Manager in Arduino IDE:

Library Description
ESP8266 ESP8266 board support
ArduinoJson JSON serialization
PubSubClient MQTT client

⚙️ Configuration

Before uploading, update these settings:

📡 MQTT Settings

In mqtt.h, set your broker IP:

mqttServer = "192.168.0.100";  // Your MQTT broker IP

In WiFi_Sniffer.ino (line 186), update the MQTT credentials:

client.connect("ESP32Client", "your-username", "your-password")

📶 WiFi Settings (WiFi_Sniffer.ino)

mySSID = "your-wifi-name";
MyPassword = "your-wifi-password";

🔌 Serial Monitor

The default baud rate is 115200. Make sure your Serial Monitor matches this setting.

💡 Tip: If you're using older hardware that requires a different baud rate, change Serial.begin(115200); in the sketch to your preferred speed (e.g., 9600).

📬 MQTT Topics

Topic Description
Sniffer/# All sniffer data is published under this topic

🔴 Node-RED Integration

A sample Node-RED flow is included in Node-red Flow.txt.

To import:

  1. Open Node-RED
  2. Menu → Import → Clipboard
  3. Paste the contents of the flow file

探索相关项目

加载中…