-
-
Notifications
You must be signed in to change notification settings - Fork 318
Compiling with Arduino
-
Download the source code of this project.
-
Open up the drivers folder and install the appropriate driver for your board (Install both if you are unsure).
-
Install Arduino and open it.
-
Go to
File
>Preferences
-
Add
http://arduino.esp8266.com/stable/package_esp8266com_index.json
to the Additional Boards Manager URLs. (refer to https://github.com/esp8266/Arduino) -
Go to
Tools
>Board
>Boards Manager
-
Type in
esp8266
and select version2.0.0
, then click onInstall
(must be version 2.0.0!)
-
Open
C:\Users\%username%\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\tools\sdk\include\user_interface.h
in your preferred text editor. -
Just before the last line
#endif
, add the following:
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);
-
Navigate to the arduino/SDK_fix folder of this project
-
Copy
ESP8266Wi-Fi.cpp
andESP8266Wi-Fi.h
toC:\Users\%username%\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi\src
replacing the originals -
Open
arduino/Wi-PWN/Wi-PWN.ino
in Arduino -
Go to
Tools
>Board
and select the appropriate board for your ESP8266 module, along with the correct port inTools
>Port
. -
Depending on your board you may have to adjust the
Tools
>Board
>Flash Frequency
and theTools
>Board
>Flash Size
. Select80MHz
4M (1M SPIFFS)
as these are the most common -
Upload the sketch! CTRL-U
Note: If you use a 512kb version of the ESP8266, you need to comment out a part of the mac vendor list in data.h