brainelectronics / MyEVSE-Webinterface

Webinterface of MyEVSE
MIT License
1 stars 0 forks source link

Use unique AccessPoint name #14

Closed brainelectronics closed 2 years ago

brainelectronics commented 2 years ago

Relates to https://github.com/brainelectronics/Micropython-ESP-WiFi-Manager/issues/15

In case more than one device uses this lib, it is hard to connect to the desired device as all have the same AccessPoint name.

Create the MyEVSE AccessPoint with a unique name based on the unique ID function of micropython-modules

brainelectronics commented 2 years ago

if all modules are of the same batch they only differ of course in the last digits only. Call function https://github.com/brainelectronics/MyEVSE-Webinterface/blob/7ab6d2ea3e35ae7e2dbfc5930e409de6c9d5b455/myevse_webinterface/webinterface.py#L528 as follows

GenericHelper.get_uuid(-4).decode('ascii'))