Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

json object string causes error in stream block
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

json object string causes error in stream block

by darz on Thu Jan 21, 2016 6:50 pm

Hi I'm printing out a string from my HUZZAH:
"{"ESP_A5CB50":[{"Hum":"53.00"},{"Temp":"75.02"},{"HIF":"74.71"}]}".

It prints out in the serial monitor as expected but when

I try to view it in a stream block, I get this error instead: http://oi66.tinypic.com/2lxhw8k.jpg

"ERROR - feed dht22_huzzah: undefined method 'gsub!' for nil.NilClass"

darz
 
Posts: 72
Joined: Sun Jul 19, 2015 10:02 am

Please be positive and constructive with your questions and comments.