If I try to read any of the analog inputs with the Giga R1 setup for IOT, it crashes.
This started with an IOT security update. Any help would be greatly appreciated.
#include "thingProperties.h"
int Value;
int AllSwVal;
void setup() {
Serial.begin(9600);
delay(1500);
initProperties();
ArduinoCloud.begin(ArduinoIoTPreferredConnection);
setDebugMessageLevel(2);
ArduinoCloud.printDebugInfo();
}
void loop() {
ArduinoCloud.update();
delay(1000);
//AllSwVal=analogRead(A0);
//delay(1000);
}
void onT1Change() {
Value = t_1.getBrightness();
Serial.println(Value);
}