getParamsValues method
Obtains the device parameters.
If forceDeviceCheck
is set to true the function will forcibly poll
for the Rainmaker device regardless of whether it was previously
discovered.
Throws a LocalControlUnavailable
exception if the device address
if not known.
Implementation
Future<Map<String, dynamic>> getParamsValues(
[bool forceDeviceCheck = false]) async {
if (forceDeviceCheck) {
final tmpIp = await _getDeviceIP();
if (tmpIp != null) {
_ipAndPort = tmpIp;
}
}
if (_ipAndPort == null) {
throw LocalControlUnavailable();
}
return _apiManager.getParamsValues(_ipAndPort!.baseUrl);
}