0

MQTT ERROR rejected, only shared feeds may be published to
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

MQTT ERROR rejected, only shared feeds may be published to

by jimk123 on Tue Oct 08, 2019 7:12 pm

try to follow the geofence guide here:
https://learn.adafruit.com/geofencing-w ... dafruit-io

in my code it defines the feed as:
const char LOCATION_FEED[] PROGMEM = AIO_USERNAME "/feeds/location/csv";
Adafruit_MQTT_Publish location_feed = Adafruit_MQTT_Publish(&mqtt, LOCATION_FEED)

it did not say anywhere in the guide to manually create the feed but I ended up creating one called 'location' after getting errors

in the serial window it says it successfully published the lat and lon values:
Publishing location: 0,41.898823,-72.676041,28.300001
Publish succeeded!

but when I look at https://io.adafruit.com under profile i see this error message pop up every 30 seconds ( I have a 30 second delay in the code):
MQTT ERROR: xxxxxxxxxxxxxxxxxx 172.58.238.198 PUBLISH ,,11,8,,,44,, OK -72.676067,29.200,0.17,269.1,1,,� rejected, only shared feeds may be published to

I have been using adafruit IO for a few weeks with some other boards publishing temp, humidity, etc but the feed name is always one value like 'temp' the one in the geofence code is called feeds/location/csv, not sure if I need to define something else in IO ?

jimk123
 
Posts: 180
Joined: Sun Dec 26, 2010 7:04 pm

Please be positive and constructive with your questions and comments.