PelionIoT / mbed-connector-api-python

python library for using connector.mbed.com
Apache License 2.0
2 stars 2 forks source link

Notification payload should be unwrapped #11

Open janjongboom opened 8 years ago

janjongboom commented 8 years ago

getResourceValue returns a string, notification returns base64 encoded value.

BlackstoneEngineering commented 8 years ago

I'm not sure what you mean by this. The getResourceValue function returns the un-encoded value so the user doesnt have to decode it as an additional step. The Notification channel data is simply the raw data being streamed around. Are you suggesting that we decrypt the payloads in the notification channel data as well?

janjongboom commented 8 years ago

Yes, absolutely. Now we have 2 ways of dealing with data depending on how you receive the new value, which is not user friendly.

BlackstoneEngineering commented 8 years ago

Going to add this to the notification channel for auto decryption injected into the data stream.