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

Moderator: igrr

User avatar
By Unc3nZureD
#59312 I'm interested if it's possible to somehow discover the devices which is on the same network as my ESP8266.
On laptop I would simply just listen to the ARP broadcasts, but I don't know if it's possible with the ESP8266 SDK.

I don't care if it takes time or not 100% accurate (like te previously mentioned ARP boradcast), I just want to check if I can find my specific computer without any information. ( eg. I'm running an FTP server on port XXX - after that the ESP8266 Will try if it can connect to that port on every computer on the device. If succeed, then my machine is found :) )

Thanks! :)
User avatar
By xtal
#59316 LUA and Arduino IDE do have methods to do this , I'm not sure if basic has implemented this....Unfortunately its been a while since I been coding , and don't remember the code..

I think I found the procedures using google.. The LUAmethod seemed to be more repeatable the the Arduino IDE version , i.e. showing same discoveries.....
User avatar
By Unc3nZureD
#59318 Basic? I'm programming in C/Arduino, so if those already have implementations, that would be awesome :)

I'll look around google, but if you can find some usable links, then please send it to me :) Thank you.
User avatar
By xtal
#59320 this may be helpful https://github.com/esp8266/Arduino/issues/132
also Arduino code snip


/code
/*==============================================================================*/
String scanNetworks() {
byte numSsid = WiFi.scanNetworks();
String s = "** Scan Networks **\r\n";
s += "SSID List:";
s += numSsid;
s += "\r\n";
for (int thisNet = 0; thisNet<numSsid; thisNet++) {
s += thisNet;
s += ") ";
s += WiFi.RSSI(thisNet);
s += " AP: ";
s += WiFi.SSID(thisNet);
s += ((WiFi.encryptionType(thisNet) == ENC_TYPE_NONE)?" ":"*");
s += "\r\n";
}
return s;
}
/code/