Skip to content

Instantly share code, notes, and snippets.

@jwcooper
Created March 8, 2021 20:13
Show Gist options
  • Save jwcooper/8384d8158dd30560c77c8d55ac84f397 to your computer and use it in GitHub Desktop.
Save jwcooper/8384d8158dd30560c77c8d55ac84f397 to your computer and use it in GitHub Desktop.
group = aio.groups('group-key')
feeds = group.feeds
def get_feed(key):
return next((feed for feed in feeds if feed.key == key), None)
while True:
if machine == 1:
feed_one_ = get_feed('group-key.feed-one')
feed_one_.send_data(feed_one_.key, str(state))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment