0

Is the Adafruit IO feed sharing example out of date?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Is the Adafruit IO feed sharing example out of date?

by fshmcallister on Thu Jun 27, 2019 6:30 am

Hi guys, I'm messing around with this example from the Adafruit IO Python client examples:

https://adafruit-io-python-client.readt ... ring.html#

Which works great when calling my own feed, but when calling someone else's feed (sharing enabled for both), instead of posting messages to that shared feed, it creates a new feed on my feed instead.

I also found I had to remove the
Code: Select all | TOGGLE FULL SIZE
IO_FEED_USERNAME
segment from line 70 when using it to access my own feed as again it would generate a new feed in the form of username.feed_name. If I left this part of the code in, I would not receive messages from the feed.

Any help would be appreciated

fshmcallister
 
Posts: 2
Joined: Fri Jun 21, 2019 6:58 am

Re: Is the Adafruit IO feed sharing example out of date?

by abachman on Tue Jul 02, 2019 6:05 pm

Hi fshmcallister,


Can you share the code you're running and the client library and language versions you're using?


- adam b.

abachman
 
Posts: 306
Joined: Mon Feb 01, 2010 12:48 pm

Re: Is the Adafruit IO feed sharing example out of date?

by fshmcallister on Wed Jul 03, 2019 5:01 am

Hi Adam,

the full code segment I lifted verbatim from here: https://adafruit-io-python-client.readt ... ring.html#
When running this as is I get a creation of a new feed every time rather than calling the one that pre-exists in my dashboard. Also when accessing another person's feed, as I said it just creates a new feed with the other person's name.

I altered and tested it to use credentials from WoTT (an IOT security company) which you can find here: https://github.com/fshmcallister/agent/ ... d_feeds.py

On line 70 I had to comment out the
Code: Select all | TOGGLE FULL SIZE
 IO_FEED_USERNAME
or I would get the creation of a new feed 'fshmcallister.data feed' on the adafruit dashboard. While this fixes the issue when calling my own feed, it's needed when calling someone else's feed.

I'm using the Python client and version is Python 3.5.3

fshmcallister
 
Posts: 2
Joined: Fri Jun 21, 2019 6:58 am

Please be positive and constructive with your questions and comments.