Android-nRF-Mesh-Library icon indicating copy to clipboard operation
Android-nRF-Mesh-Library copied to clipboard

Automatically connects to Mesh

Open Timmy5818 opened this issue 2 years ago • 2 comments

Hello, I am new to Android development. I want to make a system that automatically connects to Mesh. How do I implement it?

Or can clearly explain the current code, because the file part is too complicated, I don't know where to start.

I would like to automate the input of the user pick, the Net Key, App Key, Groups and publication settings selected in the code section.

Timmy5818 avatar Sep 19 '22 14:09 Timmy5818

Hi, Let me answer you last question first.

I want to make a system that automatically connects to Mesh. How do I implement it?

I would recommend you to prompt the user to select the configuration, i.e. which network key, app key, subscription and publication settings first and start provisioning and apply the selected configuration after.

I would like to automate the input of the user pick, the Net Key, App Key, Groups and publication settings selected in the code section.

When connecting to a mesh network you need to scan with the Mesh Proxy service uuid and check for the network id that is advertised by the mesh devices as described in the mesh profile specification chapter 7. Here's the ScannerRepository class that does that.

https://github.com/NordicSemiconductor/Android-nRF-Mesh-Library/blob/fa3d03941d076409fff1c036678c85ee61be05ea/app/src/main/java/no/nordicsemi/android/nrfmesh/viewmodels/ScannerRepository.java#L71-L110

roshanrajaratnam avatar Sep 20 '22 07:09 roshanrajaratnam

Hello, I have imported the original project into our project using the Library method. I would like to ask if you want to refer to the API description? Because we don't know how to use the API on our side

Timmy5818 avatar Sep 20 '22 08:09 Timmy5818

Hi you might want to look here

roshanrajaratnam avatar May 25 '23 11:05 roshanrajaratnam