MKRFOX unable to send messages repeatedly

I get my MKRFOX to send one message and then go to deep sleep but when it wakes up (and has sent its second message) it gets stuck. What am I missing here:

#include <SigFox.h>
#include <ArduinoLowPower.h>

int LEDpin = 6;

void setup() {
  pinMode(LEDpin, OUTPUT);      

void loop() { 
  digitalWrite(LEDpin, HIGH); //turn led on
  int ret = SigFox.endPacket();

  digitalWrite(LEDpin, LOW); // turn led off
  LowPower.deepSleep(15*60*1000);        // 15min


/ Nicke

The arduino is running on 2 AA batteries.

When it wakes up after 15 minutes it turns on the LED, sends the second message, the LED stays on, and nothing more happends.

If I replace the deepSleep with a delay the same thing happends. The arduino will come to a halt after the second message, with the led still on.

  //LowPower.deepSleep(15*60*1000);        // 15min

Powering it by usb, instead of batteries, doesn´t help either.



...makes the code work, but that enables the power save features I need to run my solution on AA batteries

It seems like this is a "known" bug
-MKR FOX: SigFox messages stop after two successful messages
-MKRFOX power saving issue

Fairly annoying that you can´t combine the two main features of this board (sending messages via sigfox network and powersaving for running on battery).

J'ai le même problème après une mise à jour de la carte SAMD
J'ai fait un retour arrière en version de la carte Arduino SAMD Boards 1.8.11 en 1.6.21 et c'est ok

Même utilisation avec piles AA et la fonction LowPower.deepSleep

J'ai posé la question aujourd'hui sur le forum au sujet de ce problème


This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.