Open Platform
Skip to content

Gateway Interfaces ​

1.Judging whether Bluetooth is available ​
c
public boolean isBLEEnabled(Context context)
2.Request to turn on Bluetooth ​
c
public void requestBleEnable(Activity activity)
3.Init the Bluetooth configuration ​
c
public void prepareBTService(Context context)
4.Stop the service to release Bluetooth resource ​
c
public void stopBTService()
5.start scan nearby gateway which is in setting mode ​
c
public void startScanGateway(ScanGatewayCallback callback)
6.stop scan gateway ​
c
public void stopScanGateway()
7.connect gateway ​
c
public void connectGateway(String mac, ConnectCallback connectCallback)
c
public void connectGateway(
    ExtendedBluetoothDevice extendedBluetoothDevice,
    ConnectCallback connectCallback)
8.init gateway ​
c
public void initGateway(
    @NonNull ConfigureGatewayInfo configureInfo,
    InitGatewayCallback callback)
9.scan gateway available wifi ​
c
public void scanWiFiByGateway(String mac, ScanWiFiByGatewayCallback callback)
10.make gateway enter dfu mode ​
c
public void enterDfu(String mac, EnterDfuCallback callback)
​
​
​
​
CopyRight © 2012-2026 TTLock.All Rights Reserved