-
-
Couldn't load subscription status.
- Fork 323
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.jsonto the Additional Boards Manager URLs. (refer to https://github.com/esp8266/Arduino) -
Go to
Tools>Board>Boards Manager -
Type in
esp8266and 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.hin 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.cppandESP8266Wi-Fi.htoC:\Users\%username%\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi\srcreplacing the originals -
Open
arduino/Wi-PWN/Wi-PWN.inoin Arduino -
Go to
Tools>Boardand 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 Frequencyand theTools>Board>Flash Size. Select80MHz4M (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