DeviceDiscovery
MOVE Models
data class DeviceDiscovery(
val startDelay: Long?,
val duration: Long?,
val interval: Long?,
val stopScanOnFirstDiscovered: Boolean = false,
val ensureSynced: Boolean = false,
)public struct DeviceDiscovery {
public var startDelay: TimeInterval = 120
public var interval: TimeInterval = 300
public var duration: TimeInterval = 10
public var stopScanOnFirstDiscovered: Bool = false
public var ensureSynced: Bool = false
}export type MoveSdkDeviceDiscovery = {
startDelay?: number;
duration?: number;
interval?: number;
stopScanOnFirstDiscovered?: boolean;
ensureSynced?: boolean;
};DeviceDiscovery
Type
Default
startDelay
Number
120
Device discovery delay from start of the trip in seconds. If null, the default value is used.
duration
Number
10
Device discovery scan duration in seconds. If null, the default value is used.
interval
Number
300
Device discovery repeat interval in seconds. If null, the default value is used.
stopScanOnFirstDiscovered
Boolean
false
Stop detection on first device discovered.
ensureSynced
Boolean
false
since MOVE SDK 2.17.0
If set to true devices which fail synchronisation with the backend will automatically be unregistered. See state in MoveDeviceState.
DeviceDiscovery related
.setup(..., options:...)
During setup it is possible to add DeviceDiscovery options to the MOVE SDK.
Fired when previous registered MoveDevice's are scanned.
Last updated