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

Fails on iOS 16.x in flutter app #10

Closed hbelser closed 1 year ago

hbelser commented 1 year ago

Has anyone successfully used this package on iOS 16.x? Running a simple Flutter App causes the following persistent socket send error, details below.

The error (OS Error: No route to host, errno = 65) seems to point to a Local Network access issue, however the App does have Local Network Access enabled in Settings.

flutter: \^[[35m[10:47:47.236] [esp_smartconfig] [DEBUG] Creating UDP socket on port 18266<…> flutter: \^[[35m[10:47:47.261] [esp_smartconfig] [DEBUG] UDP socket on port 18266 successfully created<…> flutter: \^[[32m[10:47:47.274] [esp_smartconfig] [INFO] Provisioning started<…> flutter: \^[[31m[10:47:47.283] [esp_smartconfig] [ERROR] Socket error\^[[0m \^[[31m[exception] SocketException: Send failed (OS Error: No route to host, errno = 65), address = 0.0.0.0, port = 18266\^[[0m \^[[31m[stacktrace]\^[[0m

0 _NativeSocket.send (dart:io-patch/socket_patch.dart:1213:34)

1 _RawDatagramSocket.send (dart:io-patch/socket_patch.dart:2460:15)

2 Protocol.send (package:esp_smartconfig/src/protocol.dart:129:20)

3 Protocol.sendBlock._ (package:esp_smartconfig/src/protocol.dart:63:7)

4 Bottleneck.flow (package:esp_smartconfig/src/bottleneck.dart:22:7)

5 Protocol.sendBlock (package:esp_smartconfig/src/protocol.dart:75:18)

6 Protocol.loop (package:esp_smartconfig/src/protocol.dart:98:5)

7 Provisioner._startProvisioning. (package:esp_smartconfig/src/provisioner.dart:204:38)

8 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)

9 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)

10 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.d<…>

flutter: \^[[31m[10:47:47.285] [esp_smartconfig] [ERROR] Socket error: SocketException: Send failed (OS Error: No route to host, errno = 65), address = 0.0.0.0, port = 18266<…> flutter: \^[[35m[10:47:47.288] [esp_smartconfig] [DEBUG] Destroying isolate<…> flutter: \^[[32m[10:47:47.289] [esp_smartconfig] [INFO] Provisioning stopped<…>