ARTICLE AD BOX
I am new in Android. I made an app that controls a WROOM-02 board containing an esp8266 microcontroller in AP mode. I am using the WROOM module as it comes, with the original AT firmware. I could make it work mostly with code I found here in a moto e7. When I installed the same app in a RedmiNote 13 it doesn't work, but if I send an UDP packet from my laptop the WROOM receives it.
I also tried using a UDP sender I downloaded to my phone and the WROOM doesn't receive the packet.
I tried the following:
Connecting the laptop and the cellphone to my router I can send and receive messages between the laptop and the cellphone.
Connecting the laptop and the cellphone to the WROOM AP I can send messages in the laptop, but in the cellphone I receive messages but when I send something to the laptop I don't receive it.
As I am usin 3rd party apps and standard AT firmware in the WROOM I don't know if any of my code will be useful to you.
Here is my AndroidManifest anyway:
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> " <application android:allowBackup="true" android:dataExtractionRules="@xml/data_extraction_rules" android:fullBackupContent="@xml/backup_rules" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:usesCleartextTraffic="true" android:theme="@style/Theme.FrenoAcoplados"> <activity android:name=".MainActivity" android:screenOrientation="portrait" android:exported="true"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest>I didn't find the same issue so I hope I am not posting a duplicate question. Please let me know if you need more information or tests from my side. Thanks!
Let me try to explain better. The green arrows mean that it works and red arrow mean it doesn't
And to take my app out of the equation I used an UDP packet sender in my cellphone and my laptop and this is what happened:
