Category: Data

by Nearby Connection is one of the API of HUAWEI Nearby Service that allows applications to easily discover and connect to nearby devices, and exchange data with nearby devices without having Internet. Example: We can chat with a friend and can share files such as photos and videos without connecting to the Internet.

Both parties must accept the connection by calling acceptConnect() or reject the connection by calling rejectConnect().

We can classify the functionalities of the third phase as given: a) Sending data: After the connection is set up, both endpoints can call sendData() to send data to the remote endpoint.

Related Articles