How to configure ESP8266 module as an Access point or station mode

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ย. 2024

ความคิดเห็น • 8

  • @electronic.knowledge
    @electronic.knowledge 2 หลายเดือนก่อน

    I went through the steps for the esp8266 dongle project and installed the module driver, but my esp8266 module does not connect to the pc to connect to the internet, I need help?

  • @karatugba
    @karatugba 2 ปีที่แล้ว

    Hi, I run the AP mode in Arduino and in my wifi list I see my ESP201 , and I connect it but when I connect it another controller which is px4 based controller it doesn't up and I never see it is blinking blue and it never comes up wifi list.
    How can I make it this AP (Access Point) as a defult in every controller in ardunio IDE?

  • @hirenghoghari2445
    @hirenghoghari2445 4 ปีที่แล้ว +1

    Sometimes my nodemcu doesn't work. If I remove all connections and then press reset button. It will start working. I'm tired of doing this everytime. Can you tell me what should I do to overcome this ?

    • @CreativeMindVisionary
      @CreativeMindVisionary  4 ปีที่แล้ว

      It's can be happen for different reason can you just add
      WiFi.disconnect(); line
      for AP
      WiFi.disconnect();
      WiFi.mode(WIFI_AP);
      IPAddress Ip(200, 10, 15, 2);
      IPAddress NMask(255, 255, 255, 0);
      WiFi.softAPConfig(Ip, Ip, NMask);
      WiFi.softAP("TEST_AP","123");
      WiFi.begin();
      for Station
      WiFi.disconnect();
      WiFi.begin(ssid,pass);
      just try if is not fix i will help to fix it....

  • @prasunbiswas8025
    @prasunbiswas8025 4 ปีที่แล้ว +1

    do you have the code for AP+STA mode in one single file?

    • @CreativeMindVisionary
      @CreativeMindVisionary  4 ปีที่แล้ว +1

      #include
      void setup() {
      Serial.begin(115200);
      //accesspoint();
      wifiscan();
      //

      }
      void loop() {
      // put your main code here, to run repeatedly:

      }
      void accesspoint(){
      WiFi.mode(WIFI_AP);
      IPAddress Ip(200, 10, 15, 2);
      IPAddress NMask(255, 255, 255, 0);
      WiFi.softAPConfig(Ip, Ip, NMask);
      WiFi.softAP("TEST_AP","12345678");
      WiFi.begin();
      }
      void connectToWifi(){
      String DHCPIP;
      WiFi.disconnect();
      WiFi.begin("TP-LINK_95496D", "Welcome2");

      while (WiFi.status() != WL_CONNECTED) {
      delay(500);
      Serial.print(".");
      }
      Serial.println(WiFi.localIP());
      if(WiFi.status() == WL_CONNECTED){
      Serial.println("connected..");
      }
      DHCPIP = WiFi.localIP().toString();
      Serial.println("Ip Assign from network : "+DHCPIP);

      }
      void wifiscan(){
      int numberOfNetworks = WiFi.scanNetworks();
      delay(2000);
      for(int i =0; i

    • @CreativeMindVisionary
      @CreativeMindVisionary  4 ปีที่แล้ว

      change above sample code for your requirement