fetch_assoc()) { if ($row["state"] == "1"){ $button_checked = "checked"; } else { $button_checked = ""; } $html_buttons .= '

' . $row["name"] . ' - Board '. $row["board"] . ' - GPIO ' . $row["gpio"] . ' (Delete)

'; } } $result2 = getAllBoards(); $html_boards = null; if ($result2) { $html_boards .= '

Boards

'; while ($row = $result2->fetch_assoc()) { $row_reading_time = $row["last_request"]; // Uncomment to set timezone to - 1 hour (you can change 1 to any number) //$row_reading_time = date("Y-m-d H:i:s", strtotime("$row_reading_time - 1 hours")); // Uncomment to set timezone to + 4 hours (you can change 4 to any number) //$row_reading_time = date("Y-m-d H:i:s", strtotime("$row_reading_time + 7 hours")); $html_boards .= '

Board ' . $row["board"] . ' - Last Request Time: '. $row_reading_time . '

'; } } ?> ESP Output Control

ESP Output Control





Create New Output


Note: in some devices, you might need to refresh the page to see your newly created buttons or to remove deleted buttons.