Skip to content

Commit

Permalink
Optional BSSID (#27)
Browse files Browse the repository at this point in the history
Parameter `bssid` of `ProvisioningRequest`s factory `fromStrings` is not
required anymore. If ommited, `bssid` will default to
`00:00:00:00:00:00`.
  • Loading branch information
abobija authored Apr 28, 2024
1 parent 9ecab23 commit 677abc6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.3

- Parameter `bssid` of `ProvisioningRequest`s factory `fromStrings` is not required anymore. If ommited, `bssid` will default to `00:00:00:00:00:00`.

## 2.0.2

- Implemented CI/CD with GitHub Actions
Expand Down
2 changes: 1 addition & 1 deletion example/esptouch_v2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void main() async {
try {
await provisioner.start(ProvisioningRequest.fromStrings(
ssid: "Renault 1.9D",
bssid: "f8:d1:11:bf:28:5c",
bssid: "f8:d1:11:bf:28:5c", // optional
password: "renault19",
reservedData: "Hello from Dart",
));
Expand Down
2 changes: 1 addition & 1 deletion example/esptouch_v2_encryption.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void main() async {
try {
await provisioner.start(ProvisioningRequest.fromStrings(
ssid: "Renault 1.9D",
bssid: "f8:d1:11:bf:28:5c",
bssid: "f8:d1:11:bf:28:5c", // optional
password: "renault19",
encryptionKey: "MySecretKey!6754",
));
Expand Down
2 changes: 1 addition & 1 deletion example/example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void main() async {
try {
await provisioner.start(ProvisioningRequest.fromStrings(
ssid: "Renault 1.9D",
bssid: "f8:d1:11:bf:28:5c",
bssid: "f8:d1:11:bf:28:5c", // optional
password: "renault19",
));

Expand Down
2 changes: 1 addition & 1 deletion lib/src/provisioning_request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ProvisioningRequest {
/// [bssid] shoud be in format aa:bb:cc:dd:ee:ff
factory ProvisioningRequest.fromStrings({
required String ssid,
required String bssid,
String bssid = '00:00:00:00:00:00',
String? password,
String? reservedData,
String? encryptionKey,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: esp_smartconfig
description: EspTouch and EspTouchV2 implementations of SmartConfig provisioning protocols. Plain Dart. All platforms.
version: 2.0.2
version: 2.0.3
homepage: https://abobija.com
repository: https://github.com/abobija/esp-smartconfig-dart

Expand Down

0 comments on commit 677abc6

Please sign in to comment.