Hallo All,
I am New to the particle devices and cloud working. I am working with Tracker SOM Eval Board. My idea is i want to send two int data to the serial( i will post the code too here for reference ). but the problem is i want then to print in serial for every 6 seconds later i want to publish this data to the cloud as well ( not yet done ) So, the problem is with System manual Mode it works fine when i bring the Automatic Mode the Serial is stopping after a while and i dont know why can someone help me here what am i missing to add. With respect to device all this happens LED changes to different colors and once it hits to breathing CYAN the Serial print stops.
Here is my Code for Reference
SYSTEM_MODE(AUTOMATIC);
SYSTEM_THREAD(ENABLED);
int SOC = 95;
int range = 66;
void setup()
{
Serial1.begin(115200);
if (Particle.variable("SOC", SOC)== false)
{
Serial1.println( "SOC is not registered");
}
if (Particle.variable("SOC", SOC)== true)
{
Serial1.println( "SOC is registered");
}
if (Particle.variable("range", range)== false)
{
Serial1.println( "range is not registered");
}
if (Particle.variable("range", range)== true)
{
Serial1.println( "range is registered");
}
}
void loop()
{
Serial1.printlnf("SOC = %d, Range = %d", SOC,range);
delay(6000);
}
Here is the output until Serial Stops
Serial port COM6 opened
SOC is registered{13}{10} range is registered{13}{10 }SOC = 95, Range = 66{13}{10} SOC = 95, Range = 66{13}{10} SOC = 95, Range = 66{13}{10}SOC = 95, Range = 66{13}{10}SOC = 95, Range = 66{13}{10}SOC = 95, Range = 66{13}{10}SOC = 95, Range = 66{13}{10}SOC = 95, Range = 66{13}{10}SOC = 95, Range = 66{13}รพ