Skip to content

Commit 860dbb3

Browse files
committed
Added compilation warning in cased of absence of RTC.
1 parent 3addcf4 commit 860dbb3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ArduinoIoTCloud.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ static unsigned long getTimestamp() {
4646
#ifdef ARDUINO_ARCH_SAMD
4747
return rtc.getEpoch();
4848
#else
49+
#warning "No RTC available on this architecture - ArduinoIoTCloud will not keep track of local changes timestamps ."
4950
return 0;
5051
#endif
5152
}

0 commit comments

Comments
 (0)