I am trying to connect an Android Phone to an Esp32 I am Thinking in use peer to peer direct Wifi.
Esp32 Idf have the ESP NOW that have functions to send and receive data. But Android, use WIFI direct API, and don't have functions to send data by use a Java Socket which need an address and handle Streams. I try to check the protocol of raw parsing data to do a C function inside of the send function of ESP NOW but I couldn't find any detail about how concretely is parsing the data. I found a socket implementation for WiFi in Idf but is not peer to peer. Both use CCMP protocol encryption. So I am asking if it is possible make a send and receive WiFI direct between Esp32 and Android, or How can I do to implement a socket in ESP32 NOW.
Programs data transfer as small, just a signal to be decode in ESP32 and using an RF decoder. and Receive some voltages and send some scheduler to store in NVS. In IC2 expander I use to have 11 ports to act over an RC decoder for different thing to start and stop like lights or gates or pumps and phone will have some buttons and an scheduler and ESP32 info from voltage sensors.
I am not have so much experience in this.
The two programs to transfer data are these:
https://github.com/DarioLobos/Battery-C ... rter-ESP32
https://github.com/DarioLobos/DC-charge ... r-ANDROID-
Both are unfinished android is just starting because I had this communication issue.
Many thanks in advance,
Direct peer to peer WIFi to connect Android Phone
-
Dario_Lobos
- Posts: 8
- Joined: Fri Jan 16, 2026 5:40 pm
Who is online
Users browsing this forum: Baidu [Spider], ChatGPT-User, coccocbot, Qwantbot, trendictionbot and 15 guests