Mysterious events published by Photon

Hi @bko

I belive the mysterious events are more related to the SOS crash (see TCPClient unstable in 0.4.6). After taking SparkFun Phant library and whit that the TCPClient out the application does not crash any more and the mysterious events are gone.
The Particle.publish("sensor",publishString); event was correctly fired all the time.

Nevertheless I changed the code and moved char publishString[128]; declaration to global scope. Think that is more memory efficient anyway since it does not allocate new memory with every method call. Right?

Markus

1 Like