setBluetoothConfigWithHttpInfo method
Future<Response>
setBluetoothConfigWithHttpInfo(
- BluetoothConfig bluetoothConfig, {
- String? uuidToken,
Edit the Bluetooth configuration
Edits the Bluetooth configuration.
Note: This method returns the HTTP Response.
Parameters:
-
BluetoothConfig bluetoothConfig (required):
-
String uuidToken: Used for remote connections to device
Implementation
Future<Response> setBluetoothConfigWithHttpInfo(
BluetoothConfig bluetoothConfig, {
String? uuidToken,
}) async {
// ignore: prefer_const_declarations
final path = uuidToken != null
? '${LbSetupEnvironment.getApiEndpoint(iotUuid: uuidToken)}/network/bluetooth/config'
: '/network/bluetooth/config';
// ignore: prefer_final_locals
Object? postBody = bluetoothConfig;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}