mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-06-10 23:28:22 +02:00
4363f94661
This commit takes aims to bring many new garmin devices up to a working status, with basic functionalities such as: - garmin protocol initialization - basic message exchange - support for some messages in Garmin own format - support for some messages in protobuf format
19 lines
559 B
Java
19 lines
559 B
Java
package nodomain.freeyourgadget.gadgetbridge.service.devices.garmin.communicator;
|
|
|
|
import android.bluetooth.BluetoothGatt;
|
|
import android.bluetooth.BluetoothGattCharacteristic;
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.service.btle.TransactionBuilder;
|
|
|
|
public interface ICommunicator {
|
|
void sendMessage(byte[] message);
|
|
|
|
void initializeDevice(TransactionBuilder builder);
|
|
|
|
boolean onCharacteristicChanged(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic);
|
|
|
|
interface Callback {
|
|
void onMessage(byte[] message);
|
|
}
|
|
}
|