<?php require 'RESTService.php'; mysql_connect('localhost', 'root', '') or die(mysql_error()); mysql_select_db('iot_dashboard_db') or die(mysql_error()); $lastTemperatureValue = DajZadnjuVrijednost('integer', 1); echo $lastTemperatureValue;
<?php require 'RESTService.php'; mysql_connect('localhost', 'root', '') or die(mysql_error()); mysql_select_db('iot_dashboard_db') or die(mysql_error()); $lastHumidityValue = DajZadnjuVrijednost('decimal', 2); echo $lastHumidityValue;
<?php require 'RESTService.php'; mysql_connect('localhost', 'root', '') or die(mysql_error()); mysql_select_db('iot_dashboard_db') or die(mysql_error()); $lastGasConcentrationValue = DajZadnjuVrijednost('decimal', 3); echo $lastGasConcentrationValue;
<?php require 'RESTService.php'; mysql_connect('localhost', 'root', '') or die(mysql_error()); mysql_select_db('iot_dashboard_db') or die(mysql_error()); $lastPressureValue = DajZadnjuVrijednost('decimal', 1); echo $lastPressureValue;