I can’t believe you guys are so helpful on a Sunday morning. Geez…
If I follow the code, and trying to think back through, I should have power on the VUSB, data (PIR OUT) on pin D4.
Adding a Particle.publish() to mimic the Serial.println() but get timestamp, this is what I see and assuming time = UTC (I’m central time) :
event: Motion
data: {“data”:“Detected”,“ttl”:60,“published_at”:“2018-12-23T14:37:19.011Z”,“coreid”:“e00fce68e32c4a9de608b584”}
event: Motion
data: {“data”:“Ended”,“ttl”:60,“published_at”:“2018-12-23T14:37:27.248Z”,“coreid”:“e00fce68e32c4a9de608b584”}
event: Motion
data: {“data”:“Detected”,“ttl”:60,“published_at”:“2018-12-23T14:37:28.449Z”,“coreid”:“e00fce68e32c4a9de608b584”}
event: Motion
data: {“data”:“Ended”,“ttl”:60,“published_at”:“2018-12-23T14:37:36.689Z”,“coreid”:“e00fce68e32c4a9de608b584”}
event: Motion
data: {“data”:“Detected”,“ttl”:60,“published_at”:“2018-12-23T14:37:38.768Z”,“coreid”:“e00fce68e32c4a9de608b584”}
event: Motion
data: {“data”:“Detected”,“ttl”:60,“published_at”:“2018-12-23T14:37:38.849Z”,“coreid”:“e00fce68e32c4a9de608b584”}
event: Motion
data: {“data”:“Ended”,“ttl”:60,“published_at”:“2018-12-23T14:37:41.489Z”,“coreid”:“e00fce68e32c4a9de608b584”}
event: Motion
data: {“data”:“Ended”,“ttl”:60,“published_at”:“2018-12-23T14:37:49.729Z”,“coreid”:“e00fce68e32c4a9de608b584”}
event: Motion
data: {“data”:“Detected”,“ttl”:60,“published_at”:“2018-12-23T14:37:51.489Z”,“coreid”:“e00fce68e32c4a9de608b584”}
event: Motion
data: {“data”:“Detected”,“ttl”:60,“published_at”:“2018-12-23T14:37:51.569Z”,“coreid”:“e00fce68e32c4a9de608b584”}
event: Motion
data: {“data”:“Ended”,“ttl”:60,“published_at”:“2018-12-23T14:37:54.209Z”,“coreid”:“e00fce68e32c4a9de608b584”}
event: Motion
data: {“data”:“Ended”,“ttl”:60,“published_at”:“2018-12-23T14:38:02.529Z”,“coreid”:“e00fce68e32c4a9de608b584”}
event: Motion
data: {“data”:“Detected”,“ttl”:60,“published_at”:“2018-12-23T14:38:04.688Z”,“coreid”:“e00fce68e32c4a9de608b584”}
event: Motion
data: {“data”:“Detected”,“ttl”:60,“published_at”:“2018-12-23T14:38:04.768Z”,“coreid”:“e00fce68e32c4a9de608b584”}