Parsing binary data published by Auto-Event into Redis #28
-
Hi Team, My Environment Info: As I was implementing a sample device service using EdgeX C SDK I had few queries around Auto-Events. I can see in my device service logs auto-events are being triggered and sent to Redis message bus, from stdout logs of my device service:
I have written a small python client which subscribes to the events in redis published by my device service:
I see output something as below, payload is not what I expected it to be:
But If I get the same ResourceAttribute via Core Command REST API, I get valid data as below:
So my question is there some parsing that we need to do on "Payload" when getting data through redis PUB/SUB? Because as you can see above we see some binary data when we read through redis. Also few general questions I had around Auto-Events: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, the Payload string is base-64 encoded. Decoded it reads:
so you should be okay working from that. |
Beta Was this translation helpful? Give feedback.
Hi, the Payload string is base-64 encoded. Decoded it reads:
so you should be okay working fr…