From the reference
Particle.subscribe()handler(s) share the same buffer. As such, calling
Particle.subscribe()handler will wipe the subscribe buffer! In these cases, copying the subscribe buffer’s content to a separate char buffer prior to calling
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?