Skip to content
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

Particle.publish() flags fixes #1236

Merged
merged 1 commit into from
Mar 14, 2017
Merged

Particle.publish() flags fixes #1236

merged 1 commit into from
Mar 14, 2017

Conversation

sergeuz
Copy link
Member

@sergeuz sergeuz commented Jan 20, 2017

This PR sanitizes Particle.publish() overloads, making it possible to specify one or two flags for any variant of this method. The PR also implements a generic type-safe wrapper for enum-based flags, aka particle::Flags<T>, which enables regular syntax for ORed flag combinations as an option:

Particle.publish("event", "data", PRIVATE | NO_ACK);

Fixes #1201 and #1194.


Doneness:

  • Contributor has signed CLA
  • Problem and Solution clearly stated
  • Code peer reviewed
  • API tests compiled
  • Run unit/integration/application tests on device
  • Add documentation
  • Add to CHANGELOG.md after merging (add links to docs and issues)

Bug fixes

Enhancements

@sergeuz sergeuz added this to the 0.7.0 milestone Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Publish with NO_ACK missing ttl field?
2 participants