Stap 12: Verzenden gegevens MCU via het protocol. (Gebruik BLUNO van ElecFreaks)
Maak in de src directory, Transmitter.java, de geconstrueerde functie met twee parameters toe te voegen zoals hieronder:
public Transmitter(Context context, BluetoothHandler bluetoothHandler){ this.context = context; this.mBluetoothHandler = bluetoothHandler; }
Hoe voeg sendData()?
private void sendData(byte[] bytes){ mBluetoothHandler.sendData(bytes); }