Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • tzeeth
    Participant

    Hi I am reviving this post for asking what part of my code is bad because it doesn’t work.
    I am using

    const uint8_t seconds = 0;
    const uint8_t minutes = 00;
    const uint8_t hours = 10;
    const uint8_t day = 20;
    const uint8_t month = 2;
    const uint8_t year = 17;
    void setup 
    rtc.begin();
      rtc.setTime(hours, minutes, seconds);
      rtc.setDate(day, month, year);
      rtc.setAlarmMinutes(1);
      rtc.enableAlarm(rtc.MATCH_SS);
      rtc.attachInterrupt(alarmMatch);
      USBDevice.detach();
      rtc.standbyMode();
    
    void loop
    
    rtc.begin();
      rtc.setTime(hours, minutes, seconds);
      rtc.setDate(day, month, year);
      rtc.setAlarmMinutes(1);
      rtc.enableAlarm(rtc.MATCH_SS);
      rtc.attachInterrupt(alarmMatch);
      USBDevice.detach();
      rtc.standbyMode();
    

    My Arduino is MKR1400 GSM and I want to be able to send some sensors reading and then sleep for 10 hours, waking up send again and sleep in a cycle.
    Thanks for you effort and your good libraries.

Viewing 1 post (of 1 total)