We are developing a Wifi unit.. the unit will have 3 sections..
1) Hardware with wifi module and sensor
2) Tablet with an APP which will connect to the Wifi Hardware and also to a web server
3) Web server (MySql database & Tomcat)
The app is already communicating with he web server (ON / OFF) switching is communicated. We will need the android App to send and receive values to the Wifi hardware and also the same with the Web server.
To achive the same, we will need to create a server in the tablet (as part of the App) which will communicate with the Wifi hardware (Clients).