Code Monkey home page Code Monkey logo

esptouch_flutter's People

Contributors

ducnguyenenterprise avatar max-koehler avatar vincevargadev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esptouch_flutter's Issues

Not working on ios14

I have been using this with no problem until I'm updating to ios14 and esptouch stop working and get error

client: sendto fail, but just ignore it
: No route to host

Add kotlin

I try to run your example and it perfectly works. But when i try to implement to my own apps it is not working.

The problem is i am using kotlin file, but in your project is using java file. So please add example using MainActivity.kt (kotlin file)

Thanks

java.lang.InterruptedException

Thanks so much for making this package. It's just what I need for my ESP32 project. I build a test app using the connectivity package to get the device's Wi-Fi details then your sample code to configure the ESP32 device. My code to configure the device is:

print('setWifiConfig()');
if (_wifiName != null && _wifiBSSID != null && _wifiPassword != null) {
  final ESPTouchTask task = ESPTouchTask(
    ssid: _wifiName,
    bssid: _wifiBSSID,
    password: _wifiPassword,
  );
  final Stream<ESPTouchResult> stream = task.execute();
  final printResult = (ESPTouchResult result) {
    print('IP: ${result.ip} MAC: ${result.bssid}');
    setState(() {
      _remoteNotifyIPAddress = result.ip;
      _remoteNotifyMacAddress = result.bssid;
    });
  };
  StreamSubscription<ESPTouchResult> streamSubscription =
  stream.listen(printResult);
  // Don't forget to cancel your stream subscription:
  streamSubscription.cancel();
} else {
  print('Missing configuration value');
}

but when I run the app, I get the following:

D/EsptouchPlugin( 6006): Event Listener is triggered
D/EsptouchPlugin( 6006): Received stream configuration arguments: SSID: NETWORK_NAME, BBSID: 70:3a:cb:19:75:99, Password: PASSWORD, Packet: 1, Task parameter: {thresholdSucBroadcastCount=1, expectTaskResultCount=1, esptouchResultTotalLen=11, waitUdpReceivingMillisecond=15000, targetPort=7001, intervalDataCodeMillisecond=8, esptouchResultOneLen=1, esptouchResultMacLen=6, intervalGuideCodeMillisecond=8, timeoutDataCodeMillisecond=4000, waitUdpSendingMillisecond=45000, esptouchResultIpLen=4, totalRepeatTime=1, portListening=18266, timeoutGuideCodeMillisecond=2000}
D/EsptouchPlugin( 6006): Converted taskUtil parameter from map {thresholdSucBroadcastCount=1, expectTaskResultCount=1, esptouchResultTotalLen=11, waitUdpReceivingMillisecond=15000, targetPort=7001, intervalDataCodeMillisecond=8, esptouchResultOneLen=1, esptouchResultMacLen=6, intervalGuideCodeMillisecond=8, timeoutDataCodeMillisecond=4000, waitUdpSendingMillisecond=45000, esptouchResultIpLen=4, totalRepeatTime=1, portListening=18266, timeoutGuideCodeMillisecond=2000} to EsptouchTaskParameter com.espressif.iot.esptouch.task.EsptouchTaskParameter@3b00906.
D/EsptouchPlugin( 6006): Cancelling stream with configuration arguments{password=nothing is ever easy, bssid=70:3a:cb:19:75:62, taskParameter={thresholdSucBroadcastCount=1, expectTaskResultCount=1, esptouchResultTotalLen=11, waitUdpReceivingMillisecond=15000, targetPort=7001, intervalDataCodeMillisecond=8, esptouchResultOneLen=1, esptouchResultMacLen=6, intervalGuideCodeMillisecond=8, timeoutDataCodeMillisecond=4000, waitUdpSendingMillisecond=45000, esptouchResultIpLen=4, totalRepeatTime=1, portListening=18266, timeoutGuideCodeMillisecond=2000}, packet=1, ssid=Wargo}
D/EsptouchPlugin( 6006): Task existed, cancelling manually
D/EspTouchTaskUtil( 6006): cancel
D/EspTouchAsyncTask( 6006): cancelEsptouch
I/__EsptouchTask( 6006): Welcome Esptouch v0.3.7.0
D/UDPSocketServer( 6006): mServerSocket is created, socket read timeout: 60000, port: 18266
D/EspTouchAsyncTask( 6006): Expected task result count is : 1
D/__EsptouchTask( 6006): execute()
I/__EsptouchTask( 6006): localInetAddress: /192.168.86.30
D/__EsptouchTask( 6006): send gc code 
D/__EsptouchTask( 6006): __listenAsyn() start
I/__EsptouchTask( 6006): expectOneByte: 34
D/UDPSocketServer( 6006): receiveSpecLenBytes() entrance: len = 11
W/System.err( 6006): java.lang.InterruptedException
W/System.err( 6006): 	at java.lang.Thread.sleep(Native Method)
W/System.err( 6006): 	at java.lang.Thread.sleep(Thread.java:440)
W/System.err( 6006): 	at java.lang.Thread.sleep(Thread.java:356)
W/System.err( 6006): 	at com.espressif.iot.esptouch.udp.UDPSocketClient.sendData(UDPSocketClient.java:116)
W/System.err( 6006): 	at com.espressif.iot.esptouch.udp.UDPSocketClient.sendData(UDPSocketClient.java:71)
W/System.err( 6006): 	at com.espressif.iot.esptouch.task.__EsptouchTask.__execute(__EsptouchTask.java:253)
W/System.err( 6006): 	at com.espressif.iot.esptouch.task.__EsptouchTask.executeForResults(__EsptouchTask.java:325)
W/System.err( 6006): 	at com.espressif.iot.esptouch.EsptouchTask.executeForResults(EsptouchTask.java:106)
W/System.err( 6006): 	at com.smaho.eng.esptouch.EspTouchTaskUtil$EspTouchAsyncTask.doInBackground(EspTouchTaskUtil.java:75)
W/System.err( 6006): 	at com.smaho.eng.esptouch.EspTouchTaskUtil$EspTouchAsyncTask.doInBackground(EspTouchTaskUtil.java:33)
W/System.err( 6006): 	at android.os.AsyncTask$3.call(AsyncTask.java:378)
W/System.err( 6006): 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/System.err( 6006): 	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
W/System.err( 6006): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/System.err( 6006): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/System.err( 6006): 	at java.lang.Thread.run(Thread.java:919)
W/UDPSocketClient( 6006): sendData is Interrupted
D/__EsptouchTask( 6006): send gc code 
D/__EsptouchTask( 6006): send gc code 
D/__EsptouchTask( 6006): send gc code 

Have you seen this before? Do you know how I can fix this?

Build error while using esp_touch package

I am facing build error when using smart config and esp_touch package in same flutter project.. How i can remove it??

Error showing is
* What went wrong:
Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.

com.android.build.api.transform.TransformException: Error while generating the main dex list.

Guessing this has been pretty much abandoned?.

The 1.1.0-androidv2 of esptouch_flutter has been setting in pre-release for a year with the last updates to esptouch_flutter coming 18 months ago. What package are people using with similar functionality now?

Custom EspTouchResult

How to make custom EspTouchResult??
EsptouchResult = {"bssid": "10521cb6947c", "ip": "192.168.1.142", "deviceID":"EXAMPLE DEVICE ID", "cancelled": false, "success": true}

The plugin `esptouch_flutter` uses a deprecated version of the Android embedding

The plugin esptouch_flutter uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

latest version not working

[ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: MissingPluginException(No implementation found for method ssid on channel eng.smaho.com/esptouch_plugin/example)
E/flutter (23722): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156:7)
E/flutter (23722):
E/flutter (23722): #1 ssid (package:join_kit/wifi_info.dart:9:10)
E/flutter (23722):
E/flutter (23722): #2 _MyAppState.fetchWifiInfo (package:join_kit/main.dart:104:20)
E/flutter (23722):

Changing minSDK to 19 will break the callback listener

I have changed the minSDK of android to 19 instead of 16 due to breaking features in newer versions of firbase libraries.

After changing the minSDK, esptouch stopped from detecting a successful wifi paring with esp8266.

I returned to minSDK 16, it worked fine again.

wifi_info

Hi,

"class SimpleWifiInfo {
static const platform =
MethodChannel('eng.smaho.com/esptouch_plugin/example');"

when I deal with this part on my own project I constantly get error. I cant acces to ssid and also bssid. I also tried to use wifi_info and connectivity but I didn't get any results. What should I do?

No Devices Found

The application shows no devices found, even if the ESP32 board is in SmartConfig mode and the WIFI creds are hard coded to the function

Multiple device not scanning

Hey,

Multiple devices are not scanning, every time it's scanning only 1 device at a time.

esptouch_flutter: ^1.0.0
Flutter SDK Version- 2.16.1
Android Version- 10

Can not config with iOS

I run the demo , and it's working on Android but not on iOS(13.3). Is there any configuration I need to do?

Java.lang.RuntimeException: An error occurred while executing doInBackground() in Release mode

Hello,

I seem to be having issues when building the app in release mode as when I initiate the task I get the following exception:

E/AndroidRuntime(28329): FATAL EXCEPTION: AsyncTask #1
E/AndroidRuntime(28329): Process: com.wegotech.gategodeploy, PID: 28329
E/AndroidRuntime(28329): java.lang.RuntimeException: An error occurred while executing doInBackground()
E/AndroidRuntime(28329):        at android.os.AsyncTask$4.done(AsyncTask.java:399)
E/AndroidRuntime(28329):        at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
E/AndroidRuntime(28329):        at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
E/AndroidRuntime(28329):        at java.util.concurrent.FutureTask.run(FutureTask.java:271)
E/AndroidRuntime(28329):        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
E/AndroidRuntime(28329):        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/AndroidRuntime(28329):        at java.lang.Thread.run(Thread.java:919)
E/AndroidRuntime(28329): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.net.DatagramSocket.send(java.net.DatagramPacket)' on a null object reference
E/AndroidRuntime(28329):        at com.espressif.iot.esptouch.udp.UDPSocketClient.sendData(UDPSocketClient.java:100)
E/AndroidRuntime(28329):        at com.espressif.iot.esptouch.udp.UDPSocketClient.sendData(UDPSocketClient.java:71)
E/AndroidRuntime(28329):        at com.espressif.iot.esptouch.task.__EsptouchTask.executeForResults(__EsptouchTask.java:325)
E/AndroidRuntime(28329):        at com.espressif.iot.esptouch.EsptouchTask.executeForResults(EsptouchTask.java:106)
E/AndroidRuntime(28329):        at com.smaho.eng.esptouch.EspTouchTaskUtil$EspTouchAsyncTask.doInBackground(EspTouchTaskUtil.java:75)
E/AndroidRuntime(28329):        at com.smaho.eng.esptouch.EspTouchTaskUtil$EspTouchAsyncTask.doInBackground(EspTouchTaskUtil.java:33)
E/AndroidRuntime(28329):        at android.os.AsyncTask$3.call(AsyncTask.java:378)
E/AndroidRuntime(28329):        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

However when on debug mode the app runs flawlessly. What could be the issue?

need support V2 embedding.

The plugin esptouch_flutter uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

Arduino library?

I want to know which library are we supposed to use in arduino ide ??

'dispatch_get_current_queue' is deprecated: first deprecated in iOS 6.0 - unsupported interface and will be removed in a future release

  • (void)onEsptouchResultAddedWithResult:(ESPTouchResult *)result {
    NSString *bssid = result.bssid;
    NSString *ip = [ESP_NetUtil descriptionInetAddr4ByData:result.ipAddrData];
    NSDictionary *resultDictionary = @{@"bssid": bssid, @"ip": ip};
    // TODO(smaho): Verify is main queue would not be better. Or is it the main queue?
    dispatch_async(dispatch_get_current_queue(), ^{
    _eventSink(resultDictionary);
    });
    }

"dispatch_get_current_queue" is deprecated and will be removed in a future release.

Unable to get working on iOS 15.1

Hi, I've been unable to get this package working on iOS 15.1

Currently, I have been able to set up permissions correctly and get the multicast entitlement connected with the application. Even after following all the steps from 16, this has not been working.

I am concerned that whenever I call "flutter run", that the code signing that occurs there overrides the extra code-signing that was specified within the multicast setup thread.

Are the any steps I may be missing? Alongside that, is there anything that I can do to actually debug where the issue may lie as my app currently runs fine but just cannot connect to my ESP8266.

ESPTouch is sending infinity number one

i'm trying the example code in the package on pub dev and when i press execute and receive the data on UDP SEND/RECEIVE
i receiving infinity of number one

Update examples to use wifi_info and connectivity package

Issue received in email:

HI,
Sir as I was going through the documentation and trying to figure it out to work I would like to inform you that the connectivity package has been updated and the breaking change is (The getWifiName, getWifiBSSID and getWifiIP are removed to wifi_info_flutter).
Also sir I would really be thankful if you could suggest to me that I should put the GET wifi code in the wifi_info.dart file in your example code.
Thanks for your help and Thankyou for working on getting esptouch to flutter
🙌

See changelog in the connectivity package:

2.0.0 [Breaking Change] The getWifiName, getWifiBSSID and getWifiIP are removed to wifi_info_flutter.

Error: Cannot run with sound null safety

I cannot build my project with this library included.
I'm getting this error:

Error: Cannot run with sound null safety, because the following dependencies
don't support null safety:

- package:esptouch_flutter

For solutions, see https://dart.dev/go/unsound-null-safety

Can you please make this library to support null safety?

esptouch_flutter-1.1.0-androidv2/android/src/main/java/com/smaho/eng/esptouch/EsptouchPlugin.java Using or overriding deprecated APIs.

flutter run error:
esptouch_flutter-1.1.0-androidv2/android/src/main/java/com/smaho/eng/esptouch/EsptouchPlugin.java,uses or overrides deprecated API.

buildscript {
    ext.kotlin_version = '1.9.0'
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:4.2.2'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

Can this package get converted to native dart

I was wondering if this package or part of it can get converted to native dart and thus work on all platforms, and can get executed from server side as well?.

What part of this library require the flutter framework and what part of it only required native dart code.

ESPtouch Issuse.

Null Safety and device count is not working.
When two ESP are in on it is connected to two ESP's but for only one ESP the data is Going .
Please Resolve it sir.

How to send some other info with ip adress

Hello,

When i connected successfully i see the ip adress of the module and the bssid information on my app.

How can i send some other information to app alongside the ip and bssid when connected successfully?

Cannot connect after entering the password incorrectly

Hey,

When I try to connect via the example from Github it works fine. However, there is one case where an error occurs:

If I enter a password that is wrong it will output "no devices found" after a minute. Then it goes back one page and when I enter the correct password, it still aborts after a minute and displays "no devices found".
Does anyone know what to do?

Version: 1.69.1 (user setup)
Date: 2022-07-12T08:21:24.514Z
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: 10.0.139.17-electron.0
OS: Windows_NT x64 10.0.19044

Error when try to release apk

When i try to release my apk, with flutter build apk. I got the following error:

Execution failed for task ':esptouch_flutter:verifyReleaseResources'.

> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade

   > Android resource linking failed

     C:\Users\Samsung\.gradle\caches\transforms-2\files-2.1\df6cf23cc51da578d8b158de17d0c9cb\core-1.0.0\res\values\values.xml:57:5-88:25: AAPT: error: resource android:attr/fontVariationSettings not found.



     C:\Users\Samsung\.gradle\caches\transforms-2\files-2.1\df6cf23cc51da578d8b158de17d0c9cb\core-1.0.0\res\values\values.xml:57:5-88:25: AAPT: error: resource android:attr/ttcIndex not found.

Cannot pair new device on iOS 16

I tried to connect with different devices running iOS < 16 and it worked very well. But it could not match my iPhone XS Max and iPhone XS that have updated to iOS 16.

It would be great if you guys can release an update for iOS 16. Thank you a lot.

App not returning success message just loads

i tried with multiple bauderate and diffrent code for smartconfig but success message is not returned

code for smart config i used :-

#include <ESP8266WiFi.h>
#include <WiFiUdp.h>

void setup() {
  int cnt = 0;  
  
  // put your setup code here, to run once:
  Serial.begin(115200);
  
  // set for STA mode
  WiFi.mode(WIFI_STA);
  
  // led status at pin16
  pinMode(16,OUTPUT);
  
  //configure pin0 
  pinMode(0, INPUT_PULLUP);

  // deplay for 2 sec for smartConfig
  Serial.println("2 sec before clear SmartConfig");
  delay(2000);

  // if wifi cannot connect start smartconfig
  while(WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
    if(cnt++ >= 15){
       WiFi.beginSmartConfig();
       while(1){
           delay(500);
           if(WiFi.smartConfigDone()){
             Serial.println("SmartConfig Success");
             blinkSmartConfig();
             break;
           }
       }
    }
  }
 
  WiFi.printDiag(Serial);

  // Print the IP address
  Serial.println(WiFi.localIP());

}


void blinkSmartConfig() {
    digitalWrite(16, HIGH);   // turn the LED on (HIGH is the voltage level)
    delay(50);              // wait for a second 
    digitalWrite(16, LOW);    // turn the LED off by making the voltage LOW
    delay(50);
}

void blinkClearConfig() {
  int i=0;
  while(i<=10) {
    digitalWrite(16, HIGH);   // turn the LED on (HIGH is the voltage level)
    delay(100);              // wait for a second 
    digitalWrite(16, LOW);    // turn the LED off by making the voltage LOW
    delay(100);
    i++;
  }
}

void blinkStartConfig() {
  pinMode(16,OUTPUT);
  int i=0;
  digitalWrite(16, HIGH);   // turn the LED on (HIGH is the voltage level)
}


void loop() {
  // read pullup
  int isSmartConfig = digitalRead(0);
  if (isSmartConfig==0) {
    // bink for clear config
    blinkClearConfig();
    Serial.println("clear config");
    // reset default config
    WiFi.disconnect();
  }
}

Debug on console for app:-

D/ViewRootImpl(20831): [TouchInput][ViewRootImpl] KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x8, repeatCount=0, eventTime=14093543, downTime=14093543, deviceId=-1, source=0x101, displayId=-1 }
D/ViewRootImpl(20831): [TouchInput][ViewRootImpl] KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x8, repeatCount=0, eventTime=14093543, downTime=14093543, deviceId=-1, source=0x101, displayId=-1 }
W/IInputConnectionWrapper(20831): getTextBeforeCursor on inactive InputConnection
D/EsptouchPlugin(20831): Cancelling stream with configuration arguments{password=galaxy2020, bssid=58:d9:d5:ac:78:98, taskParameter={thresholdSucBroadcastCount=1, expectTaskResultCount=1, esptouchResultTotalLen=11, waitUdpReceivingMillisecond=15000, targetPort=7001, intervalDataCodeMillisecond=8, esptouchResultOneLen=1, esptouchResultMacLen=6, intervalGuideCodeMillisecond=8, timeoutDataCodeMillisecond=4000, waitUdpSendingMillisecond=45000, esptouchResultIpLen=4, totalRepeatTime=1, portListening=18266, timeoutGuideCodeMillisecond=2000}, packet=1, ssid=YashKumar}
D/EsptouchPlugin(20831): Task existed, cancelling manually
D/EspTouchTaskUtil(20831): cancel
D/EspTouchAsyncTask(20831): cancelEsptouch
D/EspTouchAsyncTask(20831): Task in cancelEsptouch has to be interrupted
D/__EsptouchTask(20831): interrupt()
D/EsptouchPlugin(20831): Event Listener is triggered
D/EsptouchPlugin(20831): Received stream configuration arguments: SSID: YashKumar, BBSID: 58:d9:d5:ac:78:98, Password: galaxy2020, Packet: 1, Task parameter: {thresholdSucBroadcastCount=1, expectTaskResultCount=1, esptouchResultTotalLen=11, waitUdpReceivingMillisecond=15000, targetPort=7001, intervalDataCodeMillisecond=8, esptouchResultOneLen=1, esptouchResultMacLen=6, intervalGuideCodeMillisecond=8, timeoutDataCodeMillisecond=4000, waitUdpSendingMillisecond=45000, esptouchResultIpLen=4, totalRepeatTime=1, portListening=18266, timeoutGuideCodeMillisecond=2000}
D/EsptouchPlugin(20831): Converted taskUtil parameter from map {thresholdSucBroadcastCount=1, expectTaskResultCount=1, esptouchResultTotalLen=11, waitUdpReceivingMillisecond=15000, targetPort=7001, intervalDataCodeMillisecond=8, esptouchResultOneLen=1, esptouchResultMacLen=6, intervalGuideCodeMillisecond=8, timeoutDataCodeMillisecond=4000, waitUdpSendingMillisecond=45000, esptouchResultIpLen=4, totalRepeatTime=1, portListening=18266, timeoutGuideCodeMillisecond=2000} to EsptouchTaskParameter com.espressif.iot.esptouch.task.EsptouchTaskParameter@47c706f.
I/__EsptouchTask(20831): Welcome Esptouch v0.3.7.0
D/UDPSocketServer(20831): mServerSocket is created, socket read timeout: 60000, port: 18266
D/EspTouchAsyncTask(20831): Expected task result count is : 1
D/__EsptouchTask(20831): execute()
I/__EsptouchTask(20831): localInetAddress: /192.168.0.103
D/__EsptouchTask(20831): send gc code 
D/__EsptouchTask(20831): __listenAsyn() start
I/__EsptouchTask(20831): expectOneByte: 28
D/UDPSocketServer(20831): receiveSpecLenBytes() entrance: len = 11
D/__EsptouchTask(20831): send gc code 
D/__EsptouchTask(20831): send gc code 
D/__EsptouchTask(20831): send gc code 
D/__EsptouchTask(20831): send gc code 
D/__EsptouchTask(20831): send gc code 
D/__EsptouchTask(20831): send gc code 
D/__EsptouchTask(20831): send gc code 
D/UDPSocketServer(20831): Poll timed out
I/__EsptouchTask(20831): receive rubbish message, just ignore
D/UDPSocketServer(20831): receiveSpecLenBytes() entrance: len = 11
I/UDPSocketClient(20831): USPSocketClient is interrupt
I/UDPSocketServer(20831): USPSocketServer is interrupt
D/UDPSocketServer(20831): mServerSocket is closed
D/UDPSocketServer(20831): recvfrom failed: EBADF (Bad file descriptor)
I/__EsptouchTask(20831): receive rubbish message, just ignore
D/__EsptouchTask(20831): __listenAsyn() finish

no success even with your example app please fix it or provide alternative solution

iOS 16 issues?

This is an email that I got:

I got some users reporting app was not working to find the ESP devices anymore. Investigating I realized they updated iPhones iOS version from 15 to iOS 16 and this is the issue. For some reason your lib is not working anymore on iOS 16.

I couldn't verify it yet, but in case someone is able to provide more info, this ticket would be the right place.

Sometimes the device is not connecting

Hey,

Sometimes the device is not connecting and also multiple devices are not scanning/connecting.
I have also tried esptouch_flutter 1.1.0-androidv2, but the result is the same.

esptouch_flutter: ^1.0.0 and esptouch_flutter 1.1.0-androidv2
Flutter SDK Version- 2.16.1
Android Version- 10/11/12

Note-: Can you please provide some updates because we are facing that issue in our live application?

The plugin `esptouch_flutter` uses a deprecated version of the Android embedding.

Good day,

When installing the package and running Flutter pub get the below warning appears.

The plugin esptouch_flutter uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it
since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

Will there be an updated version published in the near future?
Thanks
Etienne

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.