How to scan for Movesense sensors?
Scan for Movesense ble devices
import Movesenseimport PromiseKit// start scanfirstly {when(resolved: self.movesense.startScan({ _ in// if new device found// fetch and display deviceslet bleDevices = self.movesense.getDevices().map { $0.serial }}.done {_ in// if scan done}// handle scan eventsself.movesense.setHandlers(deviceConnected: { deviceSerial inprint("Device connected: \(deviceSerial)")},deviceDisconnected: { deviceSerial inprint("Device disconnected: \(deviceSerial)")},bleOnOff: { (state) inprint("BLE state changed: \(state)")})
Check the exampleApp for a better understanding of the scan process.