[Solved] Altering this code to provide Streaming API access

Hello! I build up this temp and humidity sensor project a while back (found in this post- https://community.spark.io/t/dht22-dht11-and-similar-blocking-version/998/121) and I’m a little lost on how to modify the code to use the streaming API / events instead of the regular REST api.

Here is the code I have running on the SparkCore right now: https://github.com/pzula/greenhouse-watchman/blob/master/lib/temp-and-humididity-dht22.ino

Does anyone have suggestions on how to get this set up properly for the streaming API?

Thank you!

Nevermind, I found the tutorial on Publish! https://community.spark.io/t/tutorial-getting-started-with-spark-publish/3422


I’m glad you got it figured out! I’m going to mark this post “Solved” but feel free to respond anytime with additional questions if you run into trouble