dunno, changes and stuff
This commit is contained in:
@@ -3,6 +3,12 @@
|
||||
|
||||
#include "MAC.h"
|
||||
|
||||
#if IS_ESP8266
|
||||
extern "C" {
|
||||
#include "esp_wifi.h"
|
||||
}
|
||||
#endif
|
||||
|
||||
// ifconfig wlp0s26u1u2u1 down && iw dev wlp0s26u1u2u1 set monitor none && ifconfig wlp0s26u1u2u1 up && iw dev wlp0s26u1u2u1 set channel 3
|
||||
// ifconfig wlp0s26u1u2u1 down && iw dev wlp0s26u1u2u1 set monitor none && ifconfig wlp0s26u1u2u1 up iwconfig wlp0s26u1u2u1 channel 3
|
||||
|
||||
@@ -183,15 +189,15 @@ namespace WiFiRaw {
|
||||
};
|
||||
|
||||
|
||||
#ifdef ESP8266
|
||||
#if IS_ESP8266
|
||||
WiFiRaw::MACAddress getMyMAC() {
|
||||
WiFiRaw::MACAddress mine;
|
||||
wifi_get_macaddr(0x00, (uint8_t*)&mine);
|
||||
esp_wifi_get_mac(ESP_IF_WIFI_STA, (uint8_t*)&mine);
|
||||
return mine;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef ESP32
|
||||
#if IS_ESP32
|
||||
WiFiRaw::MACAddress getMyMAC() {
|
||||
WiFiRaw::MACAddress mine;
|
||||
esp_wifi_get_mac(ESP_IF_WIFI_STA, (uint8_t*)&mine);
|
||||
|
||||
Reference in New Issue
Block a user