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 through routers SSID
3) Web server (MySql database & Tomcat)
The app is already communicating with the 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 which will communicate with the Wifi hardware (Clients) through the router.