I’m trying to propagate information via webhook. This information will be mostly read by applications that will interpret it to make it readable by users. As the plateform I’m using is the Electron, each byte cost money. So rather than sending characters, I would prefer sending row bytes (i.e. transferring one int such as timestamps, requires 4 bytes… but up to 10 characters).
But I face two issues:
The first one is that webhook only accept char as data. Therefore, I cannot transfer the value 0. But for this I found a solution (just remove zeros have replace them with their position value)
The second one, THE ONE FOR WHICH I’M WRITING THIS POST, is that Particle.publish allow only ASCII characters until code 7E.
Unfortunately, I’ve so far I failed to find a solution to force Particle.publish to use ASCII extended code.
I’m aware that I’m pushing a bit the limit of the Particle.publish function. But any help would be welcome.
Thanks in advance for any help received.