Hi, I am trying to configure a output of my Nano 33 IOT as a text string red/green which is linked to a Light widget in the dashboard but despite the text string changing from "RED" to "GREEN" the LED in the dashboard just stays red? Is there a specific format for this as a serial string? Here is the code :
CloudlLight LIGHT1;
{
if(voltage_peak_value1 == 1)
Serial.print("LIGHT1:");
Serial.print("RED");
Serial.println("");
}
else if(voltage_peak_value1 == 0)
{
Serial.print("LIGHT1:");
Serial.print("GREEN");
Serial.println("");
}