diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2016-06-12 12:21:30 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-06-12 12:21:30 +0200 |
| commit | e497d9794a7c79bc01b5b150a006cefbbc7a8be1 (patch) | |
| tree | 3070cb6a70c32af7d1203cb3d5d0073417065117 | |
| parent | 2cae9f9bd1ddeedb138af1191e517e1cf50d5b4a (diff) | |
| download | jimmiedeauth-e497d9794a7c79bc01b5b150a006cefbbc7a8be1.tar.gz jimmiedeauth-e497d9794a7c79bc01b5b150a006cefbbc7a8be1.zip | |
add requirements to header; inline needed user_interface.h
| -rw-r--r-- | jimmiejammer.ino | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/jimmiejammer.ino b/jimmiejammer.ino index a3616fb..ccc21d9 100644 --- a/jimmiejammer.ino +++ b/jimmiejammer.ino @@ -1,10 +1,14 @@ -// Expose Espressif SDK functionality - wrapped in ifdef so that it still -// compiles on other platforms -#ifdef ESP8266 +// based on RandDruid/esp8266-deauth (MIT) https://github.com/RandDruid/esp8266-deauth +// requires SDK v1.3: install esp8266/Arduino from git and checkout commit 1c5751460b7988041fdc80e0f28a31464cdf97a3 + +// Expose Espressif SDK functionality extern "C" { #include "user_interface.h" + typedef void (*freedom_outside_cb_t)(uint8 status); + int wifi_register_send_pkt_freedom_cb(freedom_outside_cb_t cb); + void wifi_unregister_send_pkt_freedom_cb(void); + int wifi_send_pkt_freedom(uint8 *buf, int len, bool sys_seq); } -#endif #include <ESP8266WiFi.h> @@ -432,4 +436,3 @@ void loop() { } } } - |
