So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By tom_in_az
#94358 Hello gang,
I am looking for a cheaper option to a xBee S6B or a WiFly RN-XV, while I get just about the same functionality from the esp8266, I am not getting the security.

So on this ESP8266 I need to be able to disable TKIP so that my SoftAP is only allowing AES connections. It has been so hard trying to find out how to disable the TKIP, maybe I'm just looking in the wrong place and it is why I'm asking here. If it helps any I am using a Amica NodeMCU ESP8266_ESP-12E board with a cp2102 chip @ 9600 baud.

Thanks in advance.
Tom

Here is my code:
Code: Select all/*
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 <ESP8266WiFi.h>

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;
    }
  }
}
User avatar
By Inq720
#94372 I haven't done much with secure web servers yet... but plan to soon. Have you looked at the examples available that use security? There are several places in the list of examples that have such examples... HelloServerBearSSL, SecureBearSSLUpdater, httpUpdateSecure, a whole slew of BearSSL_Xxxxxx under ESP8266WiFi heading.