Skip to content

BLE central Role implementation and peripheral refactor #239

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

Closed
wants to merge 0 commits into from

Conversation

sgbihu
Copy link
Contributor

@sgbihu sgbihu commented Jul 15, 2016

Need update the BLE's FW first. @kevin306 has build this FW.
@SidLeung

bt_addr_le_t *addr = (bt_addr_le_t *)user_data;
int i;

pr_debug(LOG_MODULE_APP, "[AD]: %u data_len %u\n", type, data_len);
Copy link
Contributor

@eriknyquist eriknyquist Jul 19, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we replace all calls to pr_debug with Serial.println, please?
(Just in the example code-- users won't know what it is).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok... We need to distinguish the difference between pr_debug and Serial.print. Somehow, need to make user to understand that pr_debug is for debugging purposes that log messages go out to another serial port. Serial.print is the standard IO serial output for most users. Any suggestions on how to make that clear? May be a comment in the code? That would be a whole lot of comments. May be rename the routine a bit more obvious?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the example sketches. I think we didn"t expose the pr_debug interface. I modified all pr_debug in example sketch.

@kitsunami kitsunami added this to the Castor milestone Jul 25, 2016
@eriknyquist
Copy link
Contributor

Hi @sgbihu, can you please clean up the history? Remove the merge commit, and please make one commit for each change, e.g. one for BLE central implementation and one for the peripheral refactor.
Also, when you are writing the commit messages, please consider our commit message guidelines.

@calvinatintel
Copy link
Contributor

@sgbihu Please crush the commits into one and rebase to the top of master. The branch has conflicts and cannot be merged at this point.

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.

5 participants