sendWiFiConfigToDevice

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

orgId

The organization ID used to identify the organization

certPem

The certificate in PEM format as a string

publicKey

The public key used for encryption

privateKey

The private key used for decryption

host

The host address, typically the device's server address

wifiName

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

stateCallback

The callback for handling sensor state changes during the process