Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Barnabybear
#32574 @ derek bernsen - try that - fixed the WiFI.status check if you have no connection.
@ danbicks - I know it's not ideal but when I tried a scan, took about 2500ms minimum, too long for direction finding.
This loops in about 1000ms geting faster the stronger the signal.
User avatar
By derek bernsen
#32587 Hi all,
This code almost works, I don't know why it doesn't work. It just flickers the buzzer at a pattern that doesn't change as signal strength changes. However, this code seems really, really close to working.
Code: Select all#include "ESP8266WiFi.h"

const char* ssid = "target beacon name here";
const char* password = "beacon password here if applicable";

void setup() {
  Serial.begin(115200);
  delay(50);
  pinMode(2, OUTPUT);
  WiFi.mode(WIFI_STA);
  WiFi.disconnect();
  WiFi.begin(ssid, password);
  delay(50);   
 
}
  void loop() { 
int out = WiFi.RSSI();
int result = out * - 15;
//Serial.print(out);
//Serial.print(result);
digitalWrite(2, HIGH);
delay(100);
digitalWrite(2, LOW);
delay(result);

}