Hello,
We are using Base85 to publish binary data and have noticed that sometimes there is a mismatch between what we publish from our device and what we receive at our endpoints. This occurs in cases where 2 forward brackets are published “{{” in our event data.
Below is a reduction of what we do that can demonstrate what happens.
I publish via: Particle.publish("myData", "{{");
Particle console reports correctly: {{
Our Endpoint reports empty string in the request body.
Note that using a single bracket results in a single bracket received at all points.
We are using django to handle post requests, which we receive thru particle webhooks.
I am not sure what happens when particle triggers our endpoint thru webhook, but it doesn’t appear to send the same data as reported thru the console. It appears as {{ is protected or substituted out in some way.
Is this mentioned somewhere along with a list of chars that cannot be sent? Is there a way to structure our webhook in a way that avoids this substitution?
I could try to do a string replace after I base 85 to replace {{ with something else, but I would prefer not to do this if possible.
Thanks
Radek