coloz / cordova-plugin-esptouch

Cordova esptouch/smartconfig plugin for esp8266 and ESP32
30 stars 12 forks source link

iOS 16 Unable to pair with Smart config. #14

Closed mogupta closed 11 months ago

mogupta commented 1 year ago

Using ESPtouch with ESP8266. Updated to master branch . Even then smart config not working. My iPhone version 16.1.2

Please advise.

mogupta commented 1 year ago

Works with https://apps.apple.com/us/app/espressif-esptouch/id1071176700

coloz commented 1 year ago

The same problem as before, I do not have the IOS16 of equipment for testing,so,it cannot be updated in a short time

mogupta commented 1 year ago

Bug 1

in esptouch.js , you have modified esptouch.js file with start function parameters as apSsID and apPassword but in esptouch.m you are using old parameters

start: function (apSsid, apPassword, successCallback, failCallback) {
    exec(successCallback, failCallback, "esptouch", "start", [apSsid, apPassword]);
  },
  },
- (void) start:(CDVInvokedUrlCommand *)command{
    [self.commandDelegate runInBackground:^{
        dispatch_queue_t  queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);

        [self._condition lock];
        callback_ID = command.callbackId;
        NSString *apSsid = (NSString *)[command.arguments objectAtIndex:0];
        NSString *apBssid = (NSString *)[command.arguments objectAtIndex:1];
        NSString *apPwd = (NSString *)[command.arguments objectAtIndex:2];
        int taskCount = [[command.arguments objectAtIndex:3] intValue];
        NSString *broadcastData =  (NSString *)[command.arguments objectAtIndex:4];
        BOOL isbroadcastData = true;
mogupta commented 1 year ago

Bug 2 - Fixing the first bug triggers the start function . But with the following error occurring ### repeatedly

client: sendto fail, but just ignore it
: No route to host
mogupta commented 1 year ago

@coloz please suggest something. How can I fix it ? May be you can access my device using anydesk ?

mogupta commented 1 year ago

@coloz found solution , just add the following line

image
mogupta commented 1 year ago

PR #15 fixes the issue

angelofan commented 1 year ago

@coloz Ready to publish to npm?