Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 17 Socket error #33

Open
tom2you opened this issue Aug 21, 2024 · 0 comments
Open

iOS 17 Socket error #33

tom2you opened this issue Aug 21, 2024 · 0 comments

Comments

@tom2you
Copy link

tom2you commented Aug 21, 2024

Code:

pairingDevice() async {
loggerNoStack.i('Pairing Device');
deivceCouter = 0;
_pairingDeviceWidget = [];
// logging.level = LogLevel.debug;
provisioner.listen((response) {
loggerNoStack.i("\n"
"\n------------------------------------------------------------------------\n"
"Device ($response) is connected to WiFi!"
"\n------------------------------------------------------------------------\n");
parseControllerID(response.toString());
deivceCouter++;
});

loggerNoStack.f(widget.ssid ?? "");
loggerNoStack.f(widget.bssid ?? "");
loggerNoStack.f(widget.password ?? "");

try {
  await provisioner.start(ProvisioningRequest.fromStrings(
    ssid: widget.ssid ?? "",
    bssid: widget.bssid ?? "",
    password: widget.password ?? "",
  ));
} catch (e, s) {
  loggerNoStack.e(e);
  loggerNoStack.f(s);
  provisioner.stop();
  pairingDevice();
}

}

Error :
flutter: ^[[32m[09:42:08.358] [esp_smartconfig] [INFO] Provisioning started<…>
flutter: ^[[31m[09:42:08.379] [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:1275:34)
socket_patch.dart:1275
#1 RawDatagramSocket.send (dart:io-patch/socket_patch.dart:2590:15)
socket_patch.dart:2590
#2 Protocol.send (package:esp_smartconfig/src/protocol.dart:129:20)
protocol.dart:129
#3 Protocol.sendBlock.
(package:esp_smartconfig/src/protocol.dart:63:7)
protocol.dart:63
#4 Bottleneck.flow (package:esp_smartconfig/src/bottleneck.dart:22:7)
bottleneck.dart:22
#5 Protocol.sendBlock (package:esp_smartconfig/src/protocol.dart:75:18)
protocol.dart:75
#6 Protocol.loop (package:esp_smartconfig/src/protocol.dart:98:5)
protocol.dart:98
#7 Provisioner._startProvisioning. (package:esp_smartconfig/src/provisioner.dart:203:38)
provisioner.dart:203
#8 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
timer_impl.dart:398

iPhone 15 Pro Max
iOS: 17.6.1

@tom2you tom2you changed the title ios 17 OS error iOS 17 error Aug 21, 2024
@tom2you tom2you changed the title iOS 17 error iOS 17 Socket error Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant