Sgdva Member Licensed User Nov 19, 2019 #1 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 Code: Copy Buffer = "26, HIGH".GetBytes("UTF8") TcpStreams.Write(Buffer) but this does nothing. Any help is appreciated Thanks in advance!
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 Code: Copy Buffer = "26, HIGH".GetBytes("UTF8") TcpStreams.Write(Buffer) but this does nothing. Any help is appreciated Thanks in advance!
Erel B4X founder Staff member Licensed User Longtime User Nov 19, 2019 #2 Start with this example: https://www.b4x.com/android/forum/threads/esp-configurator-based-on-b4rserializator.81452/#content And: [B4X] B4RSerializator - Send and receive objects instead of bytes Upvote 0
Start with this example: https://www.b4x.com/android/forum/threads/esp-configurator-based-on-b4rserializator.81452/#content And: [B4X] B4RSerializator - Send and receive objects instead of bytes
derez Expert Licensed User Longtime User Nov 19, 2019 #3 I can see the commands are being received by the board, but nothing happens Click to expand... 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
I can see the commands are being received by the board, but nothing happens Click to expand... 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 ...