Try to connect to a Movesense device with the given address. Address is
Bluetooth MAC address for Android devices and UUID for iOS devices. When
connection is established, onConnected is called with the device serial.
onDisconnected is called when device disconnects. onConnectionError is
called when an error occurs during connection attempt.
Make a DEL request for a resource. uri must include "suunto://" prefix
and device serial if needed. contract must be a json string. If the
request is successful, onSuccess is called with response data in json
string format, and status code. Upon error, onError is called with reason
and status code.
Make a GET request for a resource. uri must include "suunto://" prefix
and device serial if needed. contract must be a json string. If the
request is successful, onSuccess is called with response data in json
string format, and status code. Upon error, onError is called with reason
and status code.
Make a POST request for a resource. uri must include "suunto://" prefix
and device serial if needed. contract must be a json string. If the
request is successful, onSuccess is called with response data in json
string format, and status code. Upon error, onError is called with reason
and status code.
Make a PUT request for a resource. uri must include "suunto://" prefix
and device serial if needed. contract must be a json string. If the
request is successful, onSuccess is called with response data in json
string format, and status code. Upon error, onError is called with reason
and status code.
Starts scanning for Movesense devices. When a new Movesense device is
found, onNewDeviceFound is called with device name and address. Android
devices will get the Bluetooth MAC address of the sensor, where iOS
devices will get UUID as the address parameter. Scanning is terminated
automatically after 60 seconds. Only devices with Movesense services are
returned.
Make a SUBSCRIPTION request for a resource. uri must include "suunto://"
prefix and device serial if needed. contract must be a json string. If the
request is successful, onSuccess is called with response data in json
string format, and status code. Upon error, onError is called with reason
and status code. When there is a notification, onNotification is called
with notification data, which is in json string format.
onSubscriptionError is called when an error occurs with subscription, with
reason and error status code.