Skip to content

Commit

Permalink
Merge pull request #24 from brainelectronics/bugfix/use-last-four-cha…
Browse files Browse the repository at this point in the history
…racters-of-uuid-for-accesspoint-name

Use last four characters of UUID for accesspoint name
  • Loading branch information
brainelectronics authored May 6, 2022
2 parents 0c4350f + a2347e2 commit 4e29654
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
<!-- ## [Unreleased] -->

## Released
## [1.7.1] - 2022-05-06
### Fixed
- `start_config` creates an AccessPoint named `WiFiManager_xxxx` with `xxxx`
as the last four instead of first four characters of the UUID of the device,
see [#15][ref-issue-15]

## [1.7.0] - 2022-04-18
### Added
- [`toast.js`](static/js/toast.js) and [`toast.js.gz`](static/js/toast.js.gz)
Expand Down Expand Up @@ -172,8 +178,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `sendfile` function implemented in same way as on Micropythons PicoWeb

<!-- Links -->
[Unreleased]: https://github.com/brainelectronics/Micropython-ESP-WiFi-Manager/compare/1.7.0...develop
[Unreleased]: https://github.com/brainelectronics/Micropython-ESP-WiFi-Manager/compare/1.7.1...develop

[1.7.1]: https://github.com/brainelectronics/Micropython-ESP-WiFi-Manager//tree/1.7.1
[1.7.0]: https://github.com/brainelectronics/Micropython-ESP-WiFi-Manager//tree/1.7.0
[1.6.0]: https://github.com/brainelectronics/Micropython-ESP-WiFi-Manager//tree/1.6.0
[1.5.0]: https://github.com/brainelectronics/Micropython-ESP-WiFi-Manager//tree/1.5.0
Expand Down
2 changes: 1 addition & 1 deletion wifi_manager/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version_info__ = ('1', '7', '0')
__version_info__ = ('1', '7', '1')
__version__ = '.'.join(__version_info__)
__author__ = 'brainelectronics'
2 changes: 1 addition & 1 deletion wifi_manager/wifi_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def load_and_connect(self) -> bool:
def start_config(self) -> None:
"""Start WiFi manager accesspoint and webserver."""
ap_name = 'WiFiManager_{}'.format(
GenericHelper.get_uuid(4).decode('ascii'))
GenericHelper.get_uuid(-4).decode('ascii'))
self.logger.info('Starting WiFiManager as AccessPoint "{}"'.
format(ap_name))
result = self.wh.create_ap(ssid=ap_name,
Expand Down

0 comments on commit 4e29654

Please sign in to comment.