dunno, changes and stuff

This commit is contained in:
2022-07-17 14:47:21 +02:00
parent 331f9f3e6c
commit 07917fe5ba
19 changed files with 1449 additions and 192 deletions

View File

@@ -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);