Hi,
I recently unboxed, registered and began using a Particle Electron. I’ve updated the firmware to 0.6.0, and I’m targeting my compiles to that version. I can successfully flash my device, and it connects to the cellular (breathing teal) and I can interact with my program as expected.
Currently I’m using the “Publish” example, which uses the photoresistor to trigger publishing of beamStatus events. The app seems to work, I can make/break the beam and see the onboard LED signaling that a Particle.publish(“beamStatus”,“broken”,60,PRIVATE) was executed.
However, when I launch the Console and monitor Events, I don’t see any events being recorded.
I can “Ping” the device, it completes successfully.
I do see the last connect time corresponding to when I powered up the device, and it connected to the cloud.
Should I see these events in the console? Is there any tips that would help me troubleshoot?
[edit: 8/15/2017]
Link to code: Publish Example App
Also the main loop pasted below:
void loop() {
if (analogRead(photoresistor)>beamThreshold) {
if (beamBroken==true) {
Particle.publish("beamStatus","intact",60,PRIVATE);
digitalWrite(boardLed,HIGH);
delay(500);
digitalWrite(boardLed,LOW);
beamBroken=false;
}
else {
// Otherwise, this isn't a new status, and we don't have to do anything.
}
}
else {
if (beamBroken==false) {
Particle.publish("beamStatus","broken",60,PRIVATE);
digitalWrite(boardLed,HIGH);
delay(500);
digitalWrite(boardLed,LOW);
beamBroken=true;
}
else {
// Otherwise, this isn't a new status, and we don't have to do anything.
}
}
}
Successful Ping:
Thanks
-John