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

empty password #3

Closed app-vrb closed 2 years ago

app-vrb commented 2 years ago

Hi, seems to me doesn't like empty password or empty bssid. There is a way to. fix?

flutter: \^[[35m[08:59:33.728] [esp_smartconfig] [DEBUG] EspTouch povisioning<…>
flutter: \^[[35m[08:59:33.800] [esp_smartconfig] [DEBUG] ---------- Request ----------<…>
flutter: \^[[35m[08:59:33.806] [esp_smartconfig] [DEBUG] ssid [70, 82, 65, 78, 67, 69, 83, 67, 79]<…>
flutter: \^[[35m[08:59:33.807] [esp_smartconfig] [DEBUG] bssid [-8, -47, 17, -65, 40, 92]<…>
flutter: \^[[35m[08:59:33.808] [esp_smartconfig] [DEBUG] pwd []<…>
flutter: \^[[35m[08:59:33.821] [esp_smartconfig] [DEBUG] rData null<…>
flutter: \^[[35m[08:59:33.825] [esp_smartconfig] [DEBUG] encriptionKey null<…>
flutter: \^[[35m[08:59:33.827] [esp_smartconfig] [DEBUG] -----------------------------<…>
flutter: \^[[35m[08:59:33.828] [esp_smartconfig] [DEBUG] Creating UDP socket on port 18266<…>
flutter: \^[[35m[08:59:33.931] [esp_smartconfig] [DEBUG] UDP socket on port 18266 successfully created<…>
[VERBOSE-2:dart_isolate.cc(1148)] Unhandled exception:
RangeError: Invalid value: Not in inclusive range 0..69: 75
#0      List.insertAll (dart:core-patch/growable_array.dart:44:7)
#1      EspTouch._dataCodes.<anonymous closure> (package:esp_smartconfig/src/protocols/esptouch.dart:58:17)
#2      _IntListMixin.forEach (dart:typed_data-patch/typed_data_patch.dart:215:8)
#3      EspTouch._dataCodes (package:esp_smartconfig/src/protocols/esptouch.dart:57:19)
#4      EspTouch.prepare (package:esp_smartconfig/src/protocols/esptouch.dart:27:19)
#5      Provisioner._startProvisioning (package:esp_smartconfig/src/provisioner.dart:199:9)