I am working on Salesforce trailhead and I am unable to keep the device green. Its alternating between Green, Red or Amber. Interesting part is I was able to get 3 events but nothing after that time period. Another thing I noticed was the imp stayed green till I could build and save the device code. I am wondering if there is any issue with the device code which can be found here https://raw.githubusercontent.com/electricimp/Salesforce/master/examples/SmartRefrigerator/SmartRefrigerator_Salesforce.device.nut.
Any help would be great.