From the reference
NOTE 2:
Particle.publish()and theParticle.subscribe()handler(s) share the same buffer. As such, callingParticle.publish()within aParticle.subscribe()handler will wipe the subscribe buffer! In these cases, copying the subscribe buffer's content to a separate char buffer prior to callingParticle.publish()is recommended.
I think my code has this problem but I don't get what does it mean by copying the subscribe buffer's content to a separate char buffer. The only char buffer i used in my code is the buffer for sprintf.
Can anyone give me an example of how this can be achieved?
