乐鑫技术交流
直播中

HTSX

9年用户 783经验值
擅长:可编程逻辑
私信 关注
[问答]

如何禁用TKIP以便SoftAP仅为AES?

大家好,
我正在寻找比 xBee S6B 或 WiFly RN-XV 更便宜的选择,虽然我从 esp8266 获得了几乎相同的功能,但我没有获得安全性。
因此,在这个 ESP8266 上,我需要能够禁用 TKIP,以便我的 SoftAP 只允许 AES 连接。试图找出如何禁用 TKIP 一直很困难,也许我只是在错误的地方寻找,这就是我在这里问的原因。如果有帮助,我正在使用带有 cp2102 芯片的 Amica NodeMCU ESP8266_ESP-12E 板 @ 9600 波特。
汤姆
这是我的代码:
代码:全选/*
Change the SSID and password in the sketch!!!
The ESP IP is visible via the Arduino IDE serial monitor (mostly 192.168.4.1)

Then the ESP is connected to the Arduino like the XBEE.
5V
GND
RX to TX
TX to RX
*/

#include

const char* ssid = "MyAccessPointSSIDName"; //name of the wifi-network created by the ESP32
const char* pass = "123456789"; //replace with a more secure password!

// Set web server port number to 9750
WiFiServer server(9750);

bool connected = false;
WiFiClient client;


void setup() {
  Serial.begin(9600);
Serial.println("Ready");

  WiFi.softAP(ssid, pass);
  IPAddress IP = WiFi.softAPIP();
  Serial.print("AP IP address: ");
  Serial.println(IP);
  server.begin();
}

void loop() {
  // put your main code here, to run repeatedly:
  if(!connected) {
    client = server.available();
  }
  
  if(client.connected()) {
    if(!connected) {
      Serial.println("TCP connected");
      connected = true;
    }
   
    while(client.connected()) {
      while(client.available() > 0) {
        char c = client.read();
        Serial.write(c);
      }
    }
  } else {
    if(connected) {
      Serial.println("TCP disconnected");
      connected = false;
    }
  }
}


               


                        

更多回帖

发帖
×
20
完善资料,
赚取积分