'Movesense: How do I use the Swift API?

Movesense Swift API

Hey guys, I want two connect Movesense MD patches via Bluetooth to my iOS app written in Swift and then record an ECG. I am new to iOS development and there is no documentation of the Swift API available (afaik and I already asked some Movesense guys).

In the code there is the "main access point" to the Movesense Swift API:

extension Movesense {
 public static var api: MovesenseApi {
    return MovesenseApiConcrete.sharedInstance
 }
}

Do I just need to create an instance of Movesense or how am I supposed to initialize and then use the interface? Also, how do I start an ECG recording?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source