Monitoring datalogger, gateway and controller with embedded web server and building automation functions