[Solved] Flashing cyan then orange

Hey guys,

I have updated the cc3000 firmware, spark firmware (3.4), done a factory reset, deep_update, updated my keys… Still no success.Thinking it may be my code (RAM issue), although orange doens’t flashes exactly 8 times. Need some help debugging the problem…

I have a spark core hooked up to a nRF24L01 and have another nRF24L01 tx’ing each 4 seconds (count++ value).

#include <application.h>
#include "nRF24L01.h"
#include "RF24.h"

/*
* Ubidots API
**/
#define VARIABLE_ID "asdasdasdasdadasdasdasdasd"
#define TOKEN "asdasdasdasdasdasdasdasdasdasdsaddasdasdsadas"

/**
* Declaring the variables.
*/
HttpClient http;

// Headers currently need to be set at init, useful for API keys etc.
http_header_t headers[] = {
      { "Content-Type", "application/json" },
      { "X-Auth-Token" , TOKEN },
    { NULL, NULL } // NOTE: Always terminate headers will NULL
};

http_request_t request;
http_response_t response;
// Set up nRF24L01 radio on SPI bus, and pins 9 (D6) & 10 (A2) on the Shield Shield
RF24 radio(D6, A2);

// Radio pipe addresses for the 2 nodes to communicate.
const uint64_t pipes[2] = { 0xF0F0F0F0E1LL, 0xF0F0F0F0D2LL };

void setup(void)
{
    request.hostname = "things.ubidots.com";
    request.port = 80;
    radio.begin();
    
    radio.openWritingPipe(pipes[1]);
    radio.openReadingPipe(1,pipes[0]);
    
    radio.startListening();
    radio.printDetails();
}

void loop(void)
{
    if ( radio.available() )
    {
      unsigned long got_time;
      bool done = false;
      while (!done)
      {
        done = radio.read( &got_time, sizeof(unsigned long) );
        sendValueToTheInternet(got_time);
	      delay(20);
      }
    }
}

void sendValueToTheInternet(unsigned long got_time) {
    // Send to Ubidots
    request.path = "/api/v1.6/variables/"VARIABLE_ID"/values";
    request.body = "{\"value\":" + String(got_time) + "}";

    http.post(request, response, headers);
}

Everything was fine till 7:06, when it all began… Now it doesnt work for even 2 transmissions!

definely some flashing like this one here!!

Flashing orange usually suggests a key problem. You mention that you have addressed the key problem (or at least tried to). Did you use the spark cli to run key doctor?

Thanks!

It went back to normal operation after

Good to hear!