Re: MQTT BROKEN
by fraktal on Mon Jun 01, 2020 2:20 pm
File -> Examples -> Adafruit IO Arduino -> adafruitio_00_publish
I was finally able to sort it out over the weekend. Given this was the third time I'd attempted this over the last year, I thought I would share with the forum for completeness. Please correct me if I am giving bad information.
When you create a feed on the Adafruit IO website, it puts it into a default group, When I created a feed called counter and examined the info, it said the name was 'counter' and the key was 'counter.' However if you view the 'Feeds' section of the website, it will show that the feed name is 'counter' and the key is actually 'default.counter'. To get the example to work I had to change the name of the feed in the Arduino sketch to 'default.counter'.
I'm guessing this was a newbie mistake that is probably outlined in one of the many tutorials, but hopefully this will save someone else some time in the future.