open-lv / air-guard

Do-it-yourself electronics kit for building an air quality monitor for your school, work and home.
https://gaisasargs.lv
MIT License
7 stars 3 forks source link

Append part of device MAC ID to the hotspot AP name to make them unique #27

Closed kasparsd closed 2 years ago

kasparsd commented 2 years ago

To avoid problems connecting to devices when multiple of them have hotspots enabled nearby we need to use unique AP names.

One solution is to append the last two bytes of the device MAC to the AP name such as GaisaSargs03AB or GaisaSargs-03AB here:

https://github.com/open-lv/air-guard/blob/bd06151d986bbe80923d18c140d2af601c506134/firmware/micropython/sargs.py#L291

kasparsd commented 2 years ago

Can be done here https://github.com/open-lv/micropython/blob/39bf805c69e84e9c77e767989de3cdb7921e35e2/ports/esp32/boards/AIRGUARD/modules/network_manager.py or directly in sargs.py.

RonnyLV commented 2 years ago

Fixed in https://github.com/open-lv/air-guard/commit/995cdb4d79f742ae6de5641e2b2abca483565a75