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

feat: add shutdown methods stop scan stop advertise and status #40

Merged
merged 16 commits into from
Jun 7, 2023

Conversation

morrieinmaas
Copy link
Contributor

No description provided.

Moriarty added 6 commits June 1, 2023 13:54
Signed-off-by: Moriarty <moritz@animo.id>
Signed-off-by: Moriarty <moritz@animo.id>
They are called in native shutdown

Signed-off-by: Moriarty <moritz@animo.id>
Signed-off-by: Moriarty <moritz@animo.id>
Signed-off-by: Moriarty <moritz@animo.id>
Signed-off-by: Moriarty <moritz@animo.id>
@morrieinmaas morrieinmaas marked this pull request as ready for review June 1, 2023 14:17
ios/BleDidcomm.swift Show resolved Hide resolved
ios/BleDidcomm.swift Show resolved Hide resolved
ios/CentralManager.swift Outdated Show resolved Hide resolved
ios/PeripheralManager.swift Outdated Show resolved Hide resolved
src/ble.ts Outdated Show resolved Hide resolved
src/ble.ts Outdated Show resolved Hide resolved
@morrieinmaas
Copy link
Contributor Author

Some changes on the native side and on the JS side.

Native

I think we should follow a defined BLE protocol of shutting down a service, which I don't think is happening when we just set values to null.

JS

Statement should be done with hooks so UI can rerender, and code can get triggered, when a state is changed.

We can also add a useIsCentral and useIsPeripheral and all their defaults are set to false.

Nice. thanks for the quick feedback! Much appreciated.

Moriarty added 5 commits June 2, 2023 16:21
Signed-off-by: Moriarty <moritz@animo.id>
Signed-off-by: Moriarty <moritz@animo.id>
Signed-off-by: Moriarty <moritz@animo.id>
Signed-off-by: Moriarty <moritz@animo.id>
Signed-off-by: Moriarty <moritz@animo.id>
@morrieinmaas morrieinmaas self-assigned this Jun 5, 2023
ios/BleDidcomm.swift Show resolved Hide resolved
ios/CentralManager.swift Show resolved Hide resolved
src/ble.ts Outdated Show resolved Hide resolved
src/ble.ts Outdated Show resolved Hide resolved
Moriarty added 4 commits June 5, 2023 19:28
Signed-off-by: Moriarty <moritz@animo.id>
Signed-off-by: Moriarty <moritz@animo.id>
Signed-off-by: Moriarty <moritz@animo.id>
Signed-off-by: Moriarty <moritz@animo.id>
src/CentralProvider.tsx Outdated Show resolved Hide resolved
src/CentralProvider.tsx Outdated Show resolved Hide resolved
src/PeripheralProvider.tsx Outdated Show resolved Hide resolved
Signed-off-by: Moriarty <moritz@animo.id>
@morrieinmaas morrieinmaas dismissed berendsliedrecht’s stale review June 7, 2023 13:12

on holiday and timo approved

@morrieinmaas morrieinmaas merged commit aad6b28 into animo:main Jun 7, 2023
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.

4 participants