Closed tri-bao closed 8 months ago
It turns out the issue is difference. Named parameter is not used in this style thus the typo won't impact.
I described the real issue here: https://github.com/orbital-systems/react-native-esp-idf-provisioning/issues/35
Both our app and the example app in this repo could't pass the wifi scan after connecting to a device. In the example app, we can scan for the list of devices; we can select a device; but after selecting BLE, Secure1 and entering PoP, we're unable to scan Wifi.
The error message that toasted on the screen was
Failed to create session
The native log in logcat was
onCharacteristicWrite, status : 4
The native stack trace wasAfter much of debugging, I found the cause at file
NativeEspIdfProvisioning.ts
, methodcreateESPDevice
. The argumentproofOfPossesion
is misspelled (missing one s), here is it. While its koltlin counterpart in classEspIdfProvisioningModule
isproofOfPossession
. That make the PoP always passed to the native code as empty string which cause the session creation fails.Could you help fix this and pump a new version? Otherwise, the plugin won't work with any secured BLE devices