Forum: Cross-Platform-Entwicklung
Delphi
by philipp.hofmann,
22. Apr 2021
Ich benutze FBluetoothManagerLE.StartDiscovery.
Sind dies nicht 1.500ms? Ich warte immer 2.000ms damit dies passt. Dies scheint auch stabil zu sein.
Wie gesagt, ich mache jetzt auf dem Mac immer ein
BluetoothManagerLE.StartDiscovery(4000,Erste-Filter-UUID);
BluetoothManagerLE.StartDiscovery(4000,Zweite-Filter-UUID);
...
BluetoothManagerLE.StartDiscovery(4000);
Forum: Cross-Platform-Entwicklung
Delphi
by philipp.hofmann,
21. Apr 2021
Jetzt packe ich in meine Sequence an startDiscovery auch eine Suche ohne Filter und filtere in dem Fall die DiscoveredDevices, wie hier beschrieben. Danke für den Hinweis.
Mir ist nur vollkommen unklar, warum der Filter vorab nicht funktioniert, aber in der Discovered-Methode klappt. Aber was soll's. Wieder was gelernt.
Forum: Cross-Platform-Entwicklung
Delphi
by philipp.hofmann,
21. Apr 2021
Das habe ich auch schon gemerkt. Ich suche daher immer nur nach genau einem Service und wenn ich mehrere Suche dann wechseln diese sequentiell ab.
Das mit dem Filtern ist ein guter Hinweis. Mal prüfen.
Forum: Cross-Platform-Entwicklung
Delphi
by philipp.hofmann,
20. Apr 2021
Hi Rollo,
anbei das angepasste ExplorerDeviceLE-Beispiel, wo beim Discovery die Liste übergeben wird.
Aktuell gehe ich davon aus, dass ich im Wechsel mit und ohne Liste scannen muss und ohne Liste am Namen erkenne, dass das von mir gewünschte Device dabei ist.
Grüße, Philipp
Forum: Cross-Platform-Entwicklung
Delphi
by philipp.hofmann,
20. Apr 2021
Das Problem ist, dass du ja nicht mit genau diesem Device (es geht um einen Wahoo KICKR V5) testen können wirst.
Alle anderen Rollentrainer funktionieren ja problemlos. Daher wird ein Test-Beispiel nicht so viel bringen.
Forum: Cross-Platform-Entwicklung
Delphi
by philipp.hofmann,
20. Apr 2021
Hi,
mit meiner App suche ich per
ble.DiscoverDevices(4000,TBluetoothUUIDsList)
nach BLE-Devices.
Dabei suche ich die beiden folgenden Services:
{00001818-0000-1000-8000-00805F9B34FB}
{00001826-0000-1000-8000-00805F9B34FB}