2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.bluetooth.bluegiga.internal.command.attributeclient;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.bluetooth.bluegiga.internal.BlueGigaDeviceCommand;
19 * Class to implement the BlueGiga command <b>indicateConfirm</b>.
21 * This command can be used to send an acknowledge a received indication from a remote device.
22 * This function allows the application to manually confirm the indicated values instead of
23 * the smart stack Bluetooth automatically doing it. The benefit of this is extra reliability
24 * since the application can for example store the received value on the flash memory before
25 * confirming the indication to the remote device.
27 * This class provides methods for processing BlueGiga API commands.
29 * Note that this code is autogenerated. Manual changes may be overwritten.
31 * @author Chris Jackson - Initial contribution of Java code generator
34 public class BlueGigaIndicateConfirmCommand extends BlueGigaDeviceCommand {
35 public static final int COMMAND_CLASS = 0x04;
36 public static final int COMMAND_METHOD = 0x07;
39 public int[] serialize() {
40 // Serialize the header
41 serializeHeader(COMMAND_CLASS, COMMAND_METHOD);
43 // Serialize the fields
44 serializeUInt8(connection);
50 public String toString() {
51 final StringBuilder builder = new StringBuilder();
52 builder.append("BlueGigaIndicateConfirmCommand [connection=");
53 builder.append(connection);
55 return builder.toString();