Skip to content

Jira 791: Sketch crash using both Firmata and BLE library, git #377 #411

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 1 commit into from
Feb 8, 2017

Conversation

SidLeung
Copy link
Contributor

  1. The BLEStream object adds profile when boot but the HW doesn't be
    initialized and makes APP crash.
  2. Change the BLE initial process not depend on HW. Buffer the
    attributes if HW not initialized.
  3. Changed files
    libraries/CurieBLE/src/BLEDevice.h - expose constructor
    libraries/CurieBLE/src/BLEPeripheral.cpp - not call HW init function
    libraries/CurieBLE/src/internal/BLEDeviceManager.cpp - change init order
    libraries/CurieBLE/src/internal/BLEProfileManager.cpp - change constructor

…#377

1. The BLEStream object adds profile when boot but the HW doesn't be
    initialized and makes APP crash.
2. Change the BLE initial process not depend on HW. Buffer the
    attributes if HW not initialized.
3. Changed files
    libraries/CurieBLE/src/BLEDevice.h - expose constructor
    libraries/CurieBLE/src/BLEPeripheral.cpp - not call HW init function
    libraries/CurieBLE/src/internal/BLEDeviceManager.cpp - change init order
    libraries/CurieBLE/src/internal/BLEProfileManager.cpp - change constructor
@SidLeung
Copy link
Contributor Author

@bigdinotech @eriknyquist , please review the code change, thanks.

@@ -133,7 +133,8 @@ void BLEDeviceManager::poll()
}

void BLEDeviceManager::end()
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the reason for this empty function? Will it be implemented soon?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, Erik. Did talk to Liang about this issue.

The BLEDeviceManager class is a singleton. It is not expected to go away. However, it can end its operation and that's where end() can come in to tidy up its allocated resources. This will be done in the next release as part of the BLE performance improvement. Just create a Jira ticket #839 to track this task.

@SidLeung
Copy link
Contributor Author

SidLeung commented Feb 8, 2017

@yashaswini-hanji , would you please merge this PR to main trunk? Thanks.

@eriknyquist eriknyquist merged commit 547ecd7 into arduino:master Feb 8, 2017
@yashaswini-hanji
Copy link
Contributor

There is a conflict with this PR. Changes needs to be rebased.

@eriknyquist
Copy link
Contributor

I already merged it. There was no conflict

@yashaswini-hanji
Copy link
Contributor

Please ignore previous message. Erik already merged these changes.

@SidLeung
Copy link
Contributor Author

@sandeepmistry , resolution is available in nightly build starting on 2/9/2017,

http://mkfs.ndg.intel.com/json/public/package_public-07.4_index.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants