OK Erel,
When you say :
Anything that can be done in Java can also be done in B4A.
Of course I trust you!
Where I probably mistaken is that Android is phone and tablet oriented with no care regarding human intervention to run an application, and certainly not server application oriented.
Sorry to have bother you a so long time, I will change my mind and go back to my first idea which is:
- having my client apps running on my Android phones and tablets with B4A, instead of HTML interface
- having my servers app (CCTV, Home automation, ...) still running on my OpenWRT platforms
- having my Mosquitto broker running on OpenWRT platform
- having my home devices (convertor heater, garden watering system, light, smoke sensors, PIR sensors, fire sensors, temperature sensors, and so on), managed with ESP8266 platforms running NodeMCU with Lua embeded and MQTT client.
You can consider that this thread is closed.
Thank you again for your help.
And ... continue to improve your B4A project for the benefit of all of us.
Regards