B4R Tutorial ESP Configurator based on B4RSerializator


This tool replaces the browser based solution (https://www.b4x.com/android/forum/threads/esp8266-wifi-remote-configuration.68596/). It is simpler and much more powerful.

B4RSerializator, which converts objects to bytes and vice versa, is used for the communication with the B4J app and to save the settings in the EEPROM. B4RSerializator is also compatible with B4A and B4i so you can also create a mobile app.

In this specific example the data includes MQTT related settings. It should be simple to change it to store other fields. Just make sure to set the field types correctly.

If the ESP is not connected to the local network then you should connect the PC to the ESP access point and set the ip address to, which is the default ip.
If it is connected to the network and you know its ip address then you can use it instead. The ESP local ip is printed in the logs.

Now click on Get to get the stored parameters or click on Set to send the parameters to the board.
In this example it is configured to connect to the network and then connect to a MQTT broker.

Note that the Get and Set features start a new connection and close it when done. This is a simpler and safer approach compared to maintaining a continuous connection.


  • B4R_ESPConfigurator.zip
    2 KB · Views: 1,854
  • B4J_ESPConfigurator.zip
    46.1 KB · Views: 1,614


Licensed User
Hi, Do you have the same example for b4A ? in place of the b4J example

I do not. I am just working with B4J and B4R currently. Eventually, I plan on using B4A and B4i. I would like to make my app cross platform for all three. It should be pretty straight forward to make it cross platform if you watch Erel's video. It is not a complicated program. For my current project, Erel's code pretty much met all my needs. I made one or two small changes in B4J, but only because of my specific use case.