Skip to content

Commit 5b0fca1

Browse files
authored
Update Photoresistor.ino
added data type.
1 parent f9c890c commit 5b0fca1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/Sensors/Photoresistor/Photoresistor.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ void loop()
4545
// This function is called at intervals to send sensor data to Cayenne.
4646
CAYENNE_OUT(VIRTUAL_CHANNEL)
4747
{
48-
Cayenne.virtualWrite(VIRTUAL_CHANNEL, analogRead(SENSOR_PIN));
49-
}
48+
Cayenne.virtualWrite(VIRTUAL_CHANNEL, analogRead(SENSOR_PIN), "lum", "lux");
49+
}

0 commit comments

Comments
 (0)