This repository contains Nearby SDK library for embedded systems. Nearby SDK implements the Fast Pair protocol and its future versions per https://developers.google.com/nearby/fast-pair/spec
Nearby SDK assumes a single-threading model. All calls to the SDK must be on the same thread, or protected with a mutex. That includes:
nearby_fp_client_SetAdvertisement()
nearby_config.h
and disable features, if any, that you don't wish to support.nearby_platform_*.h
headers.config.mk
- see target/gLinux/config.mk
for inspiration, and add your platform in build.sh
, or use your own build system../build.sh <your platform>
nearby_fp_client_Init(NULL); nearby_fp_client_SetAdvertisement(NEARBY_FP_ADVERTISEMENT_DISCOVERABLE);