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

Merge ServerDev branch into master. #4

Closed
wants to merge 64 commits into from
Closed

Merge ServerDev branch into master. #4

wants to merge 64 commits into from

Conversation

h2zero
Copy link
Owner

@h2zero h2zero commented Mar 29, 2020

No description provided.

h2zero and others added 30 commits March 2, 2020 14:14
Implemented characteristic values and notify/indicate.
Implemented helper functions in server class.
Don't set advertising uuids if using custom data.
… and scan response.

Now checks for 31 byte limit and truncates.
…s for better handling events.

2902 descriptors now functional with onwrite callbacks working.
Refactored characterisic.notify() and setSubscribe() to use the 2902 descriptor.
Added defines for descriptor backward compatibility.
Fixed Characteristic sub map handles.
Code cleanup.
Client security tweaks.
Fix notifications sent to multiple clients from server,
where any clients after the first one sent got incorrect data.

Fix abort on advertising start if already advertising.

Fix compile error in NimBLELog.h
…lict.

Change NimBLELog.h to accomodate arduino serial monitor and log level settings.
Implemented compatibility functions in advertising class for original examples to compile.
Added / edited original examples.
Fix eddystone issues.
Refactor update connection params,
Refactor examples.
Descriptor properties now able to be set just as the characteristics.

Added createDescriptor methods.

Descriptor permissions currently setting incorrectly and need more work.
Updated examples for descriptor refactoring.

Updated characteristic/descriptor properties defines.

Added log level check for printing db info.
Added defines to nimconfig to prevent arduino initialization from releasing BLE memory.
h2zero and others added 25 commits March 20, 2020 14:52
Add client mtu exchange on connect.
Start adding host reset handling to server classes.
…efined as NIMBLE_PROPERTY::* to avoid any define conflicts with libraries.

Add New server example.
Fix buffer size for .toString()
…teristic.

Refactor original examples to use NIMBLE_PROPERTY
Minor changes to NimBLECharacteristic notification return codes.

NimBLEUtils returnCodeToString, added Success return code string.
Rename Origianl examples folder to Refactored_original_examples.
NimBLE stack was saving CCCD's for non-bonded paired peers.

Changed example to reflect this fix.
Initial work on NimBLE_client example.
Continued work on client example.
Reorder semaphore release sequences in client code.
Change NimBLE scan result to return a copy to the callback as the pointer was overwritten too quickly.
Update new example to reflect this change.

Implement a task switch in client connect to clear up any pending operations before aquiring services data.

Change callback calling in scan gap handler to pass a copy of advertised device.
Set advertised device advertisment type when creating a new device only.
… twice if called from separate tasks at nearly the same time.

Move client onConnect callback to the connect method to prevent any actions performed there from interfering with getting services.
…of copy.

Implement host reset handling in client.
…ertising starts again after host re-syncs.

Client now returns false if attempting to connect to more than 1 peripheral at the same time.
Client now handles host resets and begins scanning after re-syncing.
Client should only invoke authentication complete callback if encryption change event status is success.
Add getClientListSize(), getClientByAddress() and getDisconnectedClient() methods to NimBLEDevice.
Add protection to multiple calls of onHostSync to NimBLEDevice to prevent simultaneous calls to scan start and advertising start.
Scan start now loops repeatedly if host is in busy (connecting) state to allow scanning to start immediately, if called.
Add API_DIFFERENCES reference document.
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