None of my Serial.print() calls compile. Here's just one of the multiple error messages:
/tmp/228432445/Controller_jan12a/Controller_jan12a.ino: In function 'void onIslandChange()':
/tmp/228432445/Controller_jan12a/Controller_jan12a.ino:64:26: error: no matching function for call to 'Serial_::println(CloudDimmedLight&)'
Serial.println(island) ;
The full code is here:
#include "thingProperties.h"
void setup() {
// Initialize serial and wait for port to open:
Serial.begin(9600);
// This delay gives the chance to wait for a Serial Monitor without blocking if none is found
delay(1500);
// Defined in thingProperties.h
initProperties();
// Connect to Arduino IoT Cloud
ArduinoCloud.begin(ArduinoIoTPreferredConnection);
/*
The following function allows you to obtain more information
related to the state of network and IoT Cloud connection and errors
the higher number the more granular information you’ll get.
The default is 0 (only errors).
Maximum is 4
*/
setDebugMessageLevel(2);
ArduinoCloud.printDebugInfo();
}
void loop() {
ArduinoCloud.update();
// Your code here
}
void onEntranceChange() { // boolean
if(entrance){
Serial.println("Entrance is ON") ;
} else {
Serial.println("Entrance is OFF") ;
}
}
void onIslandChange() { // dimmed
Serial.print("Island is dimmed at: ") ;
Serial.println(island) ;
}
void onGarageChange() { // colored
Serial.print("Garage is now: ") ;
Serial.println(garage) ;
}