Skip to content

Commit

Permalink
Merge pull request #17 from brainelectronics/feature/create-accesspoi…
Browse files Browse the repository at this point in the history
…nt-with-unique-name

Create AccessPoint with unique name
  • Loading branch information
brainelectronics authored Apr 16, 2022
2 parents b5d355c + af5ab0a commit 4d98f08
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
13 changes: 11 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
-->

## [Unreleased]
<!-- ## [Unreleased] -->

## Released
## [1.5.0] - 2022-04-16
### Changed
- `start_config` creates an AccessPoint named `WiFiManager_xxxx` with `xxxx`
as the first four characters of the UUID of the device

## [1.4.0] - 2022-03-20
### Added
- Virtual oneshot timer is created and started on `latest_scan` property
Expand Down Expand Up @@ -142,8 +149,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.4.0...develop
[Unreleased]: https://github.com/brainelectronics/Micropython-ESP-WiFi-Manager/compare/1.5.0...develop

[1.5.0]: https://github.com/brainelectronics/Micropython-ESP-WiFi-Manager//tree/1.5.0
[1.4.0]: https://github.com/brainelectronics/Micropython-ESP-WiFi-Manager//tree/1.4.0
[1.3.0]: https://github.com/brainelectronics/Micropython-ESP-WiFi-Manager//tree/1.3.0
[1.2.0]: https://github.com/brainelectronics/Micropython-ESP-WiFi-Manager//tree/1.2.0
Expand All @@ -152,6 +160,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[0.1.1]: https://github.com/brainelectronics/Micropython-ESP-WiFi-Manager//tree/0.1.1
[0.1.0]: https://github.com/brainelectronics/Micropython-ESP-WiFi-Manager//tree/0.1.0

[ref-issue-15]: https://github.com/brainelectronics/Micropython-ESP-WiFi-Manager/issues/15
[ref-issue-11]: https://github.com/brainelectronics/Micropython-ESP-WiFi-Manager/issues/11
[ref-pypi]: https://pypi.org/
[ref-pfalcon-picoweb-sdist-upip]: https://github.com/pfalcon/picoweb/blob/b74428ebdde97ed1795338c13a3bdf05d71366a0/sdist_upip.py
Expand Down
7 changes: 5 additions & 2 deletions simulation/src/wifi_manager/wifi_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,11 @@ def load_and_connect(self) -> bool:

def start_config(self) -> None:
"""Start WiFi manager accesspoint and webserver."""
self.logger.info('Starting Manager with AccessPoint')
result = self.wh.create_ap(ssid='WiFiManager',
ap_name = 'WiFiManager_{}'.format(
GenericHelper.get_uuid(4).decode('ascii'))
self.logger.info('Starting WiFiManager as AccessPoint "{}"'.
format(ap_name))
result = self.wh.create_ap(ssid=ap_name,
password='',
channel=11,
timeout=5)
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', '4', '0')
__version_info__ = ('1', '5', '0')
__version__ = '.'.join(__version_info__)
__author__ = 'brainelectronics'
7 changes: 5 additions & 2 deletions wifi_manager/wifi_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,11 @@ def load_and_connect(self) -> bool:

def start_config(self) -> None:
"""Start WiFi manager accesspoint and webserver."""
self.logger.info('Starting Manager with AccessPoint')
result = self.wh.create_ap(ssid='WiFiManager',
ap_name = 'WiFiManager_{}'.format(
GenericHelper.get_uuid(4).decode('ascii'))
self.logger.info('Starting WiFiManager as AccessPoint "{}"'.
format(ap_name))
result = self.wh.create_ap(ssid=ap_name,
password='',
channel=11,
timeout=5)
Expand Down

0 comments on commit 4d98f08

Please sign in to comment.