Electron not publishing after Sleep (Stop Mode)

@BPR I like how your keeping data rates down by using particle publish to a Photon.

Have you tried this yet?

It looks as if it would accomplish the same thing without needing the extra Photon in the mix. Basically Ubidots will receive the Particle.publish event directly without needing the Photon to redirect it. Let me know.

And here is the code I'm using to send data directly to Ubidots. If your willing run a Data rate test vs the Particle.publish directly to Ubidots and see what the difference is.

// This #include statement was automatically added by the Particle IDE.
#include "Ubidots/Ubidots.h"

#define TOKEN "TGiZfnCx9eWGlLC"  // Put here your Ubidots TOKEN

Ubidots ubidots(TOKEN); // A data source with particle name will be created in your Ubidots account

int button = D0; 
int ledPin = D7;              // LED connected to D1
int sleepInterval = 60;


void setup(){
    pinMode(button, INPUT_PULLDOWN);    // sets pin as input
    pinMode(ledPin, OUTPUT);    // sets pin as output
    //Serial.begin(115200);
    ubidots.setDatasourceName("PinWakeTestCode"); // Uncomment this line to change the data source Name.
    
}

void loop(){
    
    FuelGauge fuel;
    
    float value1 = fuel.getVCell();
    float value2 = fuel.getSoC();
   
    ubidots.add("Volts", value1);  // Change for your variable name
    ubidots.add("SOC", value2);
    ubidots.sendAll();
    
  digitalWrite(ledPin, HIGH);   // sets the LED on
  delay(500);                  // waits for a second
  digitalWrite(ledPin, LOW);    // sets the LED off
  delay(500);                  // waits for a second
  digitalWrite(ledPin, HIGH);   // sets the LED on
  delay(500);                  // waits for a second
  digitalWrite(ledPin, LOW);    // sets the LED off
  delay(500);                  // waits for a second
  digitalWrite(ledPin, HIGH);   // sets the LED on
  delay(500);                  // waits for a second
  digitalWrite(ledPin, LOW);    // sets the LED off
  delay(500);                  // waits for a second

  
  System.sleep(D0, RISING, sleepInterval * 60, SLEEP_NETWORK_STANDBY);
    
}