Skip to content

Add MQTT Class #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 35 commits into from
Jul 17, 2019
Merged

Add MQTT Class #24

merged 35 commits into from
Jul 17, 2019

Conversation

brentru
Copy link
Member

@brentru brentru commented Jul 17, 2019

This pull request adds a new class, IO_MQTT to CircuitPython Adafruit IO.

BREAKING Change

  • RESTClient is now IO_HTTP to conform with IO_MQTT naming. Examples have been changed to reflect this change.

Changes:

  • Examples folder has been split into mqtt and http to organize examples better

IO_MQTT Overview:

IO_MQTT Subscription Methods:

  • subscribe and unsubscribe
  • Personal error topics: subscribe_to_throttling/subscribe_to_errors
  • Adafruit IO Services: subscribe_to_randomizer, subscribe_to_weather, subscribe_to_time

IO_MQTT Publish methods:

  • publish_multiple: Performs multiple MiniMQTT publish commands with a variable timeout
  • publish

IO_MQTT also can access the last known value of a feed using get('feed').

Addresses #23

brentru added 30 commits July 11, 2019 10:51
@brentru brentru requested a review from a team July 17, 2019 21:57
@brentru brentru merged commit 5a7e3bd into adafruit:master Jul 17, 2019
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants