Android Question ESP32 Wifi Communication

Sgdva

Member
Licensed User
Greetings!
Summary
I would like to have an android interface to send commands to the ESP32 wifi module. For this purpose, I would need to make the board be connected to the Wifi desired by the user, secondly retrieve the IP assigned in the network and finally send commands by the Android interface.
Problem
I have not found a way to do so, I can make a web interface and connect the board with this tutorial (1.) for arduino IDE, but instead of being constants, I need to assign the SSID and Password by android and retrieve the assigned IP afterwards.
In order to send commands, I have found this tutorial on the forum and I am able to connect to the board, but I am not sure how to send an specific command to turn my LED on port 26. I can see the commands are being received by the board, but nothing happens (the code is based on 1.) On this B4A code snippet, I tried to set the line on GPIO 0 to state
B4X:
Buffer = "26, HIGH".GetBytes("UTF8")
            TcpStreams.Write(Buffer)
but this does nothing.

Any help is appreciated

Thanks in advance!
 

derez

Expert
Licensed User
Longtime User
I can see the commands are being received by the board, but nothing happens
If the message is received, the b4r code is not doing its job if nothing happens.
You can't expect help if you don't show your code ...
 
Upvote 0
Top