send Wi Fi Config To Device
fun sendWiFiConfigToDevice(owner: LifecycleOwner, device: BleDevice?, orgId: String, certPem: String, publicKey: String, privateKey: String, host: String, wifiName: String, password: String, target: Int?, stateCallback: SensorStateCallback)
Sends Wi-Fi configuration to a Bluetooth device
Parameters
owner
The LifecycleOwner used to manage the configuration sending lifecycle
device
The target Bluetooth device
org Id
The organization ID used to identify the organization
cert Pem
The certificate in PEM format as a string
public Key
The public key used for encryption
private Key
The private key used for decryption
host
The host address, typically the device's server address
wifi Name
The Wi-Fi network name (SSID)
password
The Wi-Fi network password
target
The target device identifier, used to specify a particular device or target
state Callback
The callback for handling sensor state changes during the process