Introduction of Carbon to MqttListener
This change incorporates the Carbon PHP library into the MqttListener.php file. Carbon is a powerful date and time handling library, which will enhance date and time functionalities within the MQTT Listener component.
Updating Wifi Device Information
A new field last_output_web_updated_at has been added to the WifiDevice.php file and to the wifi_devices table in the database. This field will keep track of the last time a Wifi Device's output to the web was updated.
Handling Wifi Device Web Updates in MqttListener
In the MqttListener.php file, last_output_web_updated_at field of a Wi-Fi device is now assigned whenever an update is processed. This will help in tracking the update status of the Wi-Fi device.
Modifying sendDigirom Method
The sendDigirom method in SendDigirom.php file now clears the last_output_web_updated_at field, setting it to null, whenever this method is invoked. This indicates the last device output to the web hasn't been updated since the last device data dispatch.
Enhancing User Interface
On the frontend, send-digirom.blade.php has been updated to display the last_output_web_updated_at timestamp in a more human-readable format, making it easier for users to understand when the last update occurred.
PR Summary
Introduction of Carbon to MqttListener This change incorporates the Carbon PHP library into the
MqttListener.php
file. Carbon is a powerful date and time handling library, which will enhance date and time functionalities within the MQTT Listener component.Updating Wifi Device Information A new field
last_output_web_updated_at
has been added to theWifiDevice.php
file and to thewifi_devices
table in the database. This field will keep track of the last time a Wifi Device's output to the web was updated.Handling Wifi Device Web Updates in MqttListener In the
MqttListener.php
file,last_output_web_updated_at
field of a Wi-Fi device is now assigned whenever an update is processed. This will help in tracking the update status of the Wi-Fi device.Modifying sendDigirom Method The
sendDigirom
method inSendDigirom.php
file now clears thelast_output_web_updated_at
field, setting it to null, whenever this method is invoked. This indicates the last device output to the web hasn't been updated since the last device data dispatch.Enhancing User Interface On the frontend,
send-digirom.blade.php
has been updated to display thelast_output_web_updated_at
timestamp in a more human-readable format, making it easier for users to understand when the last update occurred.