#Need help on Wifi data stuff

1 messages · Page 1 of 1 (latest)

atomic cave
#

What kind of data can I read by simply connecting to a wifi network or bluetooth device? I don't need anything concrete or useful, just some kind of unique data, using it as a way to potentially choose characters in a game based on a string of numbers/letters, basically kind of like an algorithm, if that is at all possible in the first place with circuitpython based games

#

I wanted to say Randomly generate a character, but I doubt that would be easy to do, also wanted to say randomly choose a character, but if it's based on strings of data, wouldn't be random in my book I suppose.

#

Main concept is that it's kind of like a "random encounter" system, a character is encountered when you connect to a network or BT device, but it's based on the network/device you're connected to. I figured if it isn't possible, I could probably just do something along the lines of that encounter system, but instead of looking at actual data to spawn a character, it would just be like a random generator that triggers when you connect to a new network

unreal eagle
#

Without connecting to a wifi AP, you can scan available networks. This won't be at all random in a given location since the SSIDs and MAC addresses won't change much.

#

If you connect to an AP, and the AP provides access to the internet, the sky is the limit.

#

An odd possibility might be to use wifi Monitor mode, and grab some bytes from some kinds of packets. But this is a rather convoluted process for the purpose, and again it's monitoring available devices that won't change much even if their traffic does vary more.

#

Bluetooth I don't know, someone else will have to chime in.

#

🎲 you don't just want to use one of the functions in the random module?

#

if the main variance you're looking for is to treat (geographically) different networks differently, you could use the SSIDs or come up with some hash from the wifi scan results. The ability to generate multiple uniques from a given network may be limited.