DFRobot FireBeetle ESP8266 Manual Download Page 7

 

void setup() { 

  Serial.begin(115200); 

 

  // Set WiFi to station mode and disconnect from an AP if it was previously 
connected 

  WiFi.mode(WIFI_STA); 

  WiFi.disconnect(); 

  delay(100); 

 

  Serial.println("Setup done"); 

 

void loop() { 

  Serial.println("scan start"); 

 

  // WiFi.scanNetworks will return the number of networks found 

  int n = WiFi.scanNetworks(); 

  Serial.println("scan done"); 

  if (n == 0) 

    Serial.println("no networks found"); 

  else 

  { 

    Serial.print(n); 

    Serial.println(" networks found"); 

    for (int i = 0; i < n; ++i) 

    { 

      // Print SSID and RSSI for each network found 

      Serial.print(i + 1); 

      Serial.print(": "); 

      Serial.print(WiFi.SSID(i)); 

      Serial.print(" ("); 

      Serial.print(WiFi.RSSI(i)); 

      Serial.print(")"); 

      Serial.println((WiFi.encryptionType(i) == ENC_TYPE_NONE)?" ":"*"); 

Summary of Contents for FireBeetle ESP8266

Page 1: ...r programs and firmware storage Compatible with Arduino programming enables Firebeetle ESP8266 to lower the barrier of programming Operator can implement Arduino programming codes directly onto ESP826...

Page 2: ...nterface x1 IR interface x1 I2S interface x1 Interface XH2 54mm Pin No soldering default In Combination of Wi Fi MAC BB RF PA LNA WiFi IEEE802 11 b g n 2 4 GHz 2 5 GHz not support 5GHz WiFi Operating...

Page 3: ...te CH340 driver is free to install for most of Windows OS if you find there is no COM Port in Device Manager please download the driver and install it Setup Arduino IDE Development Environment Plug Fi...

Page 4: ...File Preferences paste url here...

Page 5: ...Click OK Open Tools Board Boards Manager waiting automatic update You ll find FireBeetle ESP8266 Now the development environment has been installed you can use it like a normal Arduino board...

Page 6: ...ED_BLINK LOW turn the LED off by making the voltage LOW delay 1000 wait for a second Note ESP8266 has different pinmap in different development environment For example the LED connects IO2 which maps...

Page 7: ...t WiFi scanNetworks will return the number of networks found int n WiFi scanNetworks Serial println scan done if n 0 Serial println no networks found else Serial print n Serial println networks found...

Page 8: ...println Wait a bit before scanning again delay 5000 Open your Arduino IDE serial monitor For any questions advice or cool ideas to share please visit the DFRobot Forum https www dfrobot com product 16...

Reviews: