Particle.function() should return an int, and it should return quickly, so putting long delays in those is not good practice. I doubt this has anything to do with your publish problem, but it should be corrected anyway.
Ric
21
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Trouble with Particle.variable() and Particle.publish | 29 | 2799 | March 10, 2018 | |
| Particle Cloud "Cheat Sheet" | 34 | 7049 | February 2, 2017 | |
| Electron: Collect data every minute, publish it every 15 minutes - with sleep. Better way to do this? | 52 | 3854 | May 11, 2019 | |
| Electron did not publish | 15 | 1743 | July 10, 2017 | |
| Adafruit_PM25AQI (Air Particulate Sensor) Library killing me | 52 | 3537 | August 19, 2020 |