Skip to content
Snippets Groups Projects
Commit ed6ddac0 authored by hz5's avatar hz5
Browse files

added xbee in sniffer

parent f8633336
No related branches found
No related tags found
No related merge requests found
// by Ray Burnette 20161013 compiled on Linux 16.3 using Arduino 1.6.12
#include <ESP8266WiFi.h>
#include <SoftwareSerial.h>
#include "./functions.h"
#define disable 0
......@@ -8,9 +9,12 @@
// uint8_t channel = 1;
unsigned int channel = 1;
SoftwareSerial xbee(2, 3); // RX, TX
void setup() {
timeClient.begin();
Serial.begin(57600);
xbee.begin(9600);
Serial.printf("\n\nSDK version:%s\n\r", system_get_sdk_version());
Serial.println(F("ESP8266 mini-sniff by Ray Burnette http://www.hackster.io/rayburne/projects"));
Serial.println(F("Type: /-------MAC------/-----WiFi Access Point SSID-----/ /----MAC---/"));
......@@ -43,4 +47,6 @@ void loop() {
Serial.println("\n-------------------------------------------------------------------------------------\n");
}
}
xbee.println(clients_known_count);
delay(100);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment