Calling the writeData API repeatedly may congest the transfer queue, leading to data transfer failures.
To solve this, you can set the data transfer interval Use setInterval to set the interval for calling the API. The recommended data transfer interval is 10 ms.
UUID indicates the specific content described in an entry. A standard service or a member of a standard service uses a 16-bit UUID.
Currently, NearLink supports UUIDs in the format of 37BEA880-FC70-11EA-B720-00000000FDEE, which contains 128 bits. The first 112 bits are a fixed value determined by the 128-bit base UUID (37BEA880-FC70-11EA-B720-000000000000), and the remaining 16 bits indicate either a standard service or a member of a standard service.
The 16-bit UUID that indicates a standard service or standard service member is allocated by the SparkLink Alliance and is globally unique. Through the identifier, the client can determine whether the entry carries a service, an attribute, a method, an event, or references a service. For details, see NearLink Standard Service Identifier.
NearLink provides two data transmission modes: SSAP-based interaction and port-based data transmission.
SSAP-based data transmission is recommended for low-power and small-data-volume scenarios, while port-based data transmission is recommended for high-throughput and large-file transfer scenarios.