Regarding the ESP32 Module to interface with android app

Hi all,

 I am newbie to ESP32 module.  I have to connect the ESP32 Module to Send and Receive Data to communicate through Android app in the Mobile.

Kindly recommend the ESP32 Module for purchasing and the procedure to connect the
ESP32 Module with android app.

Thanks in advance.

Regards,
V. Prakash

Welcome to the forum

Any of the ESP32 Development boards will do what you want using the built in Bluetooth

Personally I am a fan of the Wemos boards like this MINI32 MINI 32 ESP32 WiFi + Bluetooth Module Development Board for D1 mini 7426925371828 | eBay but many others are available

1 Like

Hi,

Thanks for the reply. I have to connect the ESP32 Module to android app to send and receive the data. Kindly let us know what is the testing android app to communicate?
How to do Procedures.

Regards,
V. Prakash

I assume you wish to you Bluetooth to communicate between the ESp32 and Android
try a web search for esp32 android bluetooth you will get plenty of links to tutorials/projects using BLE and Bluetooth Classic

1 Like

Hi,

Thanks for the reply. I am going to use ESP32 wifi Module to communicate with Mobile through android app. Kindly let us know is there any app to test the ESP32 wifi Module
with that app?

Regards,
V. Prakash

have a look at esp32-bluetooth-classic-arduino-ide
i have run File > Examples > BluetoothSerial > SerialtoSerialBT communicating with the Bluetooth Serial app on an Android

1 Like

Hi,

Thanks for the reply. I had seen the ESP32 bluetooth Module communication with the terminal Mobile app. It is useful. I have to use ESP32 Wifi Module communication with the Terminal Mobile app. If there is any mobile app which have the communication test like this terminal Mobile app for Wifi Communication. Please let us know.

Regards,
V. Prakash

you can connect the ESP32 to a local WiFi network, run a webserver on the ESP32 and connect a web browser on the Android too it
do a web search for esp32 webserver

1 Like

I use an app named Serial Bluetooth Terminal on an Android 'phone to communicate with the ESP32

1 Like

Hi horace,

   Thanks for the reply. Do you have any demo Video of ESP32 Wifi module to connect with android app. Please share. 

Regards,
V. Prakash

Connecting the ESP32 with Bluetooth is almost trivial

#include "BluetoothSerial.h"

BluetoothSerial SerialBT;

void setup()
{
  Serial.begin(115200);
  SerialBT.begin("ESP32test"); //Bluetooth device name
  Serial.println("The device started, now you can pair it with bluetooth!");
}

void loop()
{
  if (Serial.available())
  {
    SerialBT.write(Serial.read());
  }
  if (SerialBT.available())
  {
    Serial.write(SerialBT.read());
  }
  delay(20);
}
1 Like

Hi,

Yes. I have seen the ESP32 bluetooth Module with android app is simple. I have to connect ESP32 Wifi Module with android app. Need some sample Project or video to do it. Please share.

Regards,
V. Prakash

there are number of ESP32/Bluetooth projects online - try a web search
unless there is an existing Android app which will do what you require you will have to implement your own app using Android Studio which is not simple to use - what programming language would you use ?

1 Like

Hi,

I am planning to use the ESP32 Wifi Module with Arduino IDE to program the ESP32 Wifi Module. First i have to take a trial of ESP32 Wifi device to send and receive one byte from any testing Android app. If it is ok, we will develop our own android app through third party or we will try to develop ourself.

Kindly help to send and receive one byte of data from Android app to ESP32 wifi Through wifi communication.

Thanks in advance.

Regards,
V. Prakash

It appears that you have ruled out Bluetooth as the way for an Android phone to communicate with an ESP32 and want to use wifi.

The code for an esp32 bluetooth connection to a phone is far more simple than creating a web server on the esp to receive input from a phone connected over wifi.

Why have you chosen the wifi instead of the Bluetooth?

1 Like

probably the simplest way to send data over WiFi from an Andriod to an ESP32 is for the ESP32 to run a webserver and use HTTP GET or POST
What is the Android data coming from? an app text being typed on keypad
see esp32-esp8266-input-data-html-form

1 Like

Hi,

Thanks for the reply. It will be like Modbus RTU protocol data in Hexadecimal format.
Android app will be the Master. 5 Numbers of ESP32 Wifi Module have Connected will be treated like slaves. I have to read and write data from Android app to ESP32 Wifi Module individually to update the status in android app. This is the application i am trying for .

Regards,
V. Prakash

Bluetooth would be simpler than WiFi but Bluetooth is for local communications whereas WiFi would give you remote access if connected to the internet - it depends on your requirements.
Do you intend to implement you own Android app using Android Studio or similar IDE?
If not and using WiFi probably the simplest thing is to run WebServers on the ESP32s
the Android could use a web browser to connect to each ESP receiving and transmitting data, e.g. using HTML forms.

1 Like

Hi Horace,

      Thanks for the reply. Yes. I have Preferred to use ESP32 Wifi Module to communicate with the Android app. if the simplest thins is to run webserver on the ESP32, i will do this. Android app use a web browser to connect to Each ESP device.

Is there any demo Program to do this and also to test the demo android app to send and receive the single byte of data for testing. Kindly let us know.

Regards,
V. Prakash
`

have a look at esp32-bluetooth-classic-arduino-ide which uses the File > Examples > BluetoothSerial > SerialtoSerialBT - you can send text between an ESP32 and an android phone
there is a similar example for BLE see File > Examples > ESP32_BLE_Arduino > BLE_uart