From 9a31c107fab80a1b974fe1e7c96c74790201155d Mon Sep 17 00:00:00 2001 From: Phat Nguyen Date: Thu, 29 Feb 2024 13:58:48 +0700 Subject: [PATCH] add get BoardName from AirGradient library --- examples/ONE_I-9PSL/ONE_I-9PSL.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ONE_I-9PSL/ONE_I-9PSL.ino b/examples/ONE_I-9PSL/ONE_I-9PSL.ino index 55f435e..5e95959 100644 --- a/examples/ONE_I-9PSL/ONE_I-9PSL.ino +++ b/examples/ONE_I-9PSL/ONE_I-9PSL.ino @@ -938,7 +938,7 @@ void webServerMetricsGet(void) { }; add_metric("info", "AirGradient device information", "info"); - add_metric_point("airgradient_serial_number=\"" + getDevId() + "\",airgradient_device_type=\"ONE_I-9PSL\",airgradient_library_version=\"" + ag.getVersion() + "\"", "1"); + add_metric_point("airgradient_serial_number=\"" + getDevId() + "\",airgradient_device_type=\""+ ag.getBoardName() +"\",airgradient_library_version=\"" + ag.getVersion() + "\"", "1"); add_metric("config_ok", "1 if the AirGradient device was able to successfully fetch its configuration from the server", "gauge"); add_metric_point("", agServer.isConfigFailed() ? "0" : "1");