particle-iot/sparkjs

Issues with getEventStream

Closed this issue · 4 comments

I'm experiencing this problem too. Events are coming through as a String with the format "data: {key: value}"

Has any progress been made on this? I started a new thread on the forum with more details

I'm adding this to my sprint, and will work on fixing it in the next few weeks.

Hey All,

I just published a fix for this, and a new version of SparkJS that should fix the issue, you should now get nice JSON data objects back. It'll be up to you to parse the contents of your event though, but I'm guessing that'll be a simple JSON.parse(obj.data); :)

Thanks,
David