hello,
I'm a bit new to arduino and I have a university project that I really don't know how to solve.
The job is basically to get as many mac addresses as possible from the smart devices in a small classroom.
I had the idea of using the Wi-Fi module with the Bluetooth module and capturing the data from the devices that connect. Is this idea possible? obtain the information of the connected devices by any of the two means?
I would appreciate any information or example project that can help me achieve the objective.
Apple, Samsung and friends do not like people like you tracking their customers. That is their business not yours. Therefore they now implement random, proprietary, non-public algorithms to change the MAC address on smart devices.
Actually, this is a security concern for many reasons. We carry our smart devices with us all the time and static MAC addresses where an easy way to track people without them knowing. Therefore you can now read some random MAC address by scanning for nearby devices but that information is not very useful for long.
Start with an Arduino-compatible that can connect to Bluetooth and WiFi. The ESP32 would likely be a good choice. Then start with the scanner examples:
File -> Examples -> WiFi -> WiFiScan
File -> Examples -> BluetoothSerial -> bt_classic_device_discovery
File -> Examples -> BluetoothSerial -> DiscoverConnect
Once a device is discovered you may have to dive into the library internals to figure out where the MAC Address is stored.