abobija / esp-smartconfig-dart

EspTouch and EspTouchV2 implementations of SmartConfig provisioning protocols. Plain Dart. All platforms.
https://pub.dev/packages/esp_smartconfig
MIT License
46 stars 11 forks source link

ssid length error #4

Closed app-vrb closed 2 years ago

app-vrb commented 2 years ago

Hi I found a problem on the plugin. In case the SSID length is less than 9 characters it trow this error: [VERBOSE-2:dart_isolate.cc(1111)] Unhandled exception: RangeError: Invalid value: Not in inclusive range 0..72: 75

0 List.insertAll (dart:core-patch/growable_array.dart:44:7)

1 EspTouch._dataCodes. (package:esp_smartconfig/src/protocols/esptouch.dart:62:17)

2 _IntListMixin.forEach (dart:typed_data-patch/typed_data_patch.dart:215:8)

3 EspTouch._dataCodes (package:esp_smartconfig/src/protocols/esptouch.dart:60:19)

4 EspTouch.prepare (package:esp_smartconfig/src/protocols/esptouch.dart:27:19)

5 Provisioner._startProvisioning (package:esp_smartconfig/src/provisioner.dart:201:9)

abobija commented 2 years ago

I will investigate this as soon as I found some free time. Thanks for feedback.

app-vrb commented 2 years ago

Thanks a lot for the answer.Il 15 mar 2022 18:34, Alija Bobija @.***> ha scritto: I will investigate this as soon as I found some free time. Thanks for feedback.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

abobija commented 2 years ago

This issue is same as issue #6, let's close this and continue further discussion there.