ConnectionManager API

This page contains decripstions on previously released FriendsLink API for Android on Friends Camera SDK v1.0. See FriendsLink API (Android) for updates.

Friends Camera SDK provides ConnectoinManager API, a set of methods for BLE and Wi-Fi connection. With these methods, developers can discover LG 360 CAM devices and connect the application (client) to the camera device (server). 

BLE Connection APIs

 

Modifier and TypeMethod

void

StartScanFriends()
void StopScanFriends()
void enableFriendWifiAp(String address)

 

public void StartScanFriends()
This method scans for Friends devices by BLE scanning.

 

public void StopScanFriends()
This method stops previously started BLE scanning for Friends devices.

 

public void enableFriendWifiAp(String address)
This method sends a request to turn on Wi-Fi Soft AP mode of the target Friends device specified by the address parameter.

 

Parameters 

address

String: The BLE address of the target Friends device

 

Wi-Fi Connection APIs

 

Modifier and TypeMethod

void

connect(String ssid, String passwd)
void disconnect()
boolean isConnected(String ssid)

 

public void connect(String ssid, String passwd)
Thid method sends a Wi-Fi connection request with the SSID and Wi-Fi password provided in ssid and passwd paramters, respectively.

 

Parameters 

ssid

String: The SSID name of target Friends device

address

String: The Wi-Fi password. If null is assigned, search from the saved wifiConfiguration for the specified ssid


public void disconnect()
This method disconnects the current Wi-Fi connection.

 

public boolean isConnected(String ssid)
This method examines the Wi-Fi connection state with the specified SSID name specified in ssid parameter.

 

Parameters 

ssid

String: The SSID name of target Friends device
Navigation