Two way communication with web server on beaglebone