Hi.
I have an app that connects to a Wi-Fi module (RN171XVW-I/RM) set as AP without access to internet.
The module send small data packets to the app every 4s and the app receive and save those data.
The connection between app and module is made manually going in the Wi-Fi Settings of the phone and choosing the SSID of the specific module you want to connect to.
The app exchange data using a Socket.
The Socket is initialized and connected to the IP of the AP.
Socket1.Initialize("Socket1")
Socket1.Connect("192.168.1.1", 2000, 10000)
During the
Socket1_Connected event an Async Stream is initialized.
AStream.Initialize(Socket1.InputStream, Socket1.OutputStream, "AStream")
The data packets are received periodically in the Sub
AStream_NewData.
No problems up to Android 9, but if the app runs on Android 10 devices (tested on: Samsung Tab A and Motorola ONE ZOOM), the
AStream_NewData events are periodical only for the first packets. After those
the events begin to arrive not periodically. Sometimes they stops for a lot of seconds and after that some events arrives in less than one second. Sometimes they stops arriving at all, but the Wi-Fi module still continue to send the packets periodically.
I'm using:
B4A v.10.7
javac.exe: "jdk-11.0.1\bin\javac.exe"
android.jar: "commandlinetools-win-6609375_latest\platforms\android-30\android.jar"
Manifest: targetSdkVersion="29"
Thanks a Lot to everyone who can help me to fix this problem.