You only need to scan and see if your access point is found then return RSSI.
I will have a play later and see if I can knock up a solution for you.
Dans
Explore... Chat... Share...
Moderator: igrr
#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);
}
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]