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

Feature/publish noack #862

Merged
merged 6 commits into from
Feb 5, 2016
Merged

Feature/publish noack #862

merged 6 commits into from
Feb 5, 2016

Conversation

m-mcgowan
Copy link
Contributor

Adds NO_ACK as a flag to Publish for non-acknowledged publishes.

Usage:

Particle.publish("a","b",NO_ACK);

A test app showing the measured data use for different types of publish can be built by running

make PLATFORM=electron TEST=app/pub_no_ack all program-dfu

Run the app, connect to serial and push some keys.

Output from the test app:

Publish data use tester.
Press 'p' to publish with ACK
Press 'P' to publish without ACK
Press 'D' to print data usage counters.
Each publish waits 30s before collecting the data count.
Publishing with ACK...141 bytes
Publishing with NACK...80 bytes

m-mcgowan added a commit that referenced this pull request Feb 5, 2016
@m-mcgowan m-mcgowan merged commit 7e307d3 into develop Feb 5, 2016
@m-mcgowan m-mcgowan deleted the feature/publish-noack branch February 5, 2016 16:08
@m-mcgowan m-mcgowan added this to the 0.5.x milestone Feb 5, 2016
@m-mcgowan m-mcgowan mentioned this pull request Mar 17, 2016
17 tasks
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