Layrz Link
Layrz Link is a mobile application available for Android and iOS that allows users to convert their smartphones into a Layrz device. It supports various commands that can be used to remote setup and sniffing control of other devices.
This app is part of the
Layrz Global Network
, a network that allows BLE devices to send data to the server without needing a direct connection.Commands
get_config
Gets the current configuration of the Layrz Link device. The parameters are:
Parameter | Datatype | Description | Example |
---|---|---|---|
sending.server | string | The server type the device is sending data to, can be production or development | production |
distance.filter | integer | The distance filter in meters, the minimum distance before sending a new message | 10 |
frequency.update | integer | The frequency of updates in seconds, how often the device sends data to the server | 60 |
accuracy.filter | integer | The accuracy filter, can be low , medium , high or best | best |
sniff.interval | integer | The sniffing interval in seconds, how often the device checks for other devices | 10 |
sniff.cooldown | integer | The sniffing cooldown in seconds, how long to wait before sniffing again | 30 |
set_config
Sets the configuration of the Layrz Link device. The parameters are similar to get_config
, but they allow you to change the settings:
Parameter | Datatype | Description | Example |
---|---|---|---|
sending.server | string | The server type the device is sending data to, can be production or development | production |
distance.filter | integer | The distance filter in meters, the minimum distance before sending a new message | 10 |
frequency.update | integer | The frequency of updates in seconds, how often the device sends data to the server | 60 |
accuracy.filter | integer | The accuracy filter, can be low , medium , high or best | best |
sniff.interval | integer | The sniffing interval in seconds, how often the device checks for other devices | 10 |
sniff.cooldown | integer | The sniffing cooldown in seconds, how long to wait before sniffing again | 30 |
All parameters are optional
You don't need to set all of them, only the ones you want to change.
sniff
Starts sniffing for other devices. This command does not require any parameters. It will start the sniffing process and return a success message.
Android restrictions
Android does not allow sniffing in the background, so the app must be open for it to work. If you close the app, sniffing will stop.