Chat freely about anything...

User avatar
By beic
#67762 Hello,

I'm trying to make a little standalone AP Web Server with WeMos D1 mini, but I can't figure out how to set the AP parameters to work with my HP iPAQ.

I need to configure my WeMos D1 mini AP with these specific parameters, to be able to connect:

Channel: 1
Authentication: WPA-PSK
Data Encryption: TKIP

Sketch what I'm using:
Code: Select all#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>

const char* ssid = "MyAP";
const char* password = "12345678";
 
ESP8266WebServer server(80);

void handleRoot()
{
  server.send(200, "text/plain", "Hello from esp8266!");
}

void setup(void)
{
  Serial.begin(9600);
  Serial.println("");
  WiFi.mode(WIFI_AP);
  WiFi.softAP(ssid, password);
 
  IPAddress myIP = WiFi.softAPIP();
  Serial.print("IP Address: ");
  Serial.println(myIP);
 
  server.on("/", handleRoot);
 
  server.begin();
  Serial.println("HTTP server started");
}

void loop(void)
{
  server.handleClient();
}


Kind regards
User avatar
By QuickFix
#67767 To force the AP to use a certain channel (which by default is channel 1), use the third parameter of the softAP() function:
Code: Select allWiFi.softAP(ssid, password, 1);
When a password is entered, the authentication mechanism is WPA-PSK.

AFAIK it's not (yet) possible to change the encryption type (but I believe it's already TKIP).
User avatar
By beic
#67770
QuickFix wrote:To force the AP to use a certain channel (which by default is channel 1), use the third parameter of the softAP() function:
Code: Select allWiFi.softAP(ssid, password, 1);
When a password is entered, the authentication mechanism is WPA-PSK.

AFAIK it's not (yet) possible to change the encryption type (but I believe it's already TKIP).


Yes, I tried that too, but wont connect, but if I remove the password (AP to be Open), it's connects immediately.

Can you please tell me what could be the issue?

Thank you!
User avatar
By QuickFix
#67779 Sorry, can't tell.

I once owned an iPaq, but it got stolen 10 years ago, but I never had trouble getting it to connect to any AP or router (but then again it was the pre-ESP era and back then and I used WEP instead of WPA).

Don't you have access to an Android or iOS device by any chance?
That way you can rule things out (and see what the actual connection properties, encryption are).