-
Notifications
You must be signed in to change notification settings - Fork 182
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
Handle more than one netowk in DB #598
Comments
Hello, Also, we're almost done with a new implementation of mesh library for Android, written in Kotlin from scratch. Not backwards compatible so far, but we'll think about migration guides. As far as I know it won't use database under the hood, right @roshanrajaratnam? |
I need to manage multiple networks simultaneously, including creating, deleting, and adding nodes to different networks. However, I'm encountering challenges in maintaining consistency for the field |
The new implementation will not be using any databases and we are using datastore. The new library will create a datastore per network and will be using the configuration database format.
Use the following API to create a new network, this should allow to create a new network and you do not have to use reflections. Android-nRF-Mesh-Library/mesh/src/main/java/no/nordicsemi/android/mesh/MeshManagerApi.java Line 810 in 37de84d
|
Hi @roshanrajaratnam , Regarding the creation and management of mesh networks: to create a mesh network and store it in the database entity, I call public List<MeshNetwork> getMeshNetworks()
public void update(final String uuid, final boolean lastSelected)[Fun2](https://github.com/NordicSemiconductor/Android-nRF-Mesh-Library/blob/37de84ddb24eeab044d041244b246ebf683cde22/mesh/src/main/java/no/nordicsemi/android/mesh/data/MeshNetworkDao.java#L26) Is there an efficient way to manage multiple networks, allowing the user to seamlessly select, edit, and interact with their chosen network? |
No plans in changing it. The lib actually allows you to set custom
We're working hard to make it as soon as possible. I would say few weeks. |
Hi @philips77 and @roshanrajaratnam ,
Is it possible to add more than one mesh network to the database and to load them from DB? If so, are there any specific steps or limitations to consider?
I saw that in
MeshNetworkDao
is available the CRUD for insert a new mesh entry in the DB, but it seems not to be called in the mesh manager.The fields
isLastSelected
can be edited and updated in DB? @roshanrajaratnamIs it possible to expose
getMeshNetworks
? A PR would be accepted by your team (both on Android and iOS libraries)?The text was updated successfully, but these errors were encountered: