I now android can start this event, to accept information, not apple, have a great spirit has studied? Please advise,
CodePudding user response:
Now use the processThe first step configWXDeviceWiFi intelligent networking
The second step openWXDeviceLib initialization equipment library success
The third step startScanWXDevice scanner success
Step 4 onScanWXDeviceResult scan to a device event (have successful failure).
Test the fourth
Android area
One plus 5 t Android 8.0.0 WeChat 6.6.6 ok
Millet 6 Android 8.0.0 WeChat 6.6.6 ok
Oppor9 Android5.1 WeChat 6.6.6 ok
Vivox7 Android5.1.1 WeChat 6.6.6 ok
Apple area
Apple 6 plus ios11.2.6 WeChat 6.6.6 fail
Apple 6 s ios11.3 WeChat 6.6.6 fail
CodePudding user response:
Need to openWXDeviceLib method calls, library is to initialize the hardware equipment, incoming number plus the public the original ID, specific as follows://initializes the hardware library, some models can't initialize the success led to the back of the scanning not local device!
Wx. Invoke (' openWXDeviceLib '{' connType' : 'LAN', 'brandUserName' : 'the original ID}, function (res) {
Alert (" openWXDeviceLib: "+ JSON. Stringify (res));
});
CodePudding user response:
Because apple mobile phone to ensure that the device parameters must be strictly requirements:1, equipment server-side code deviceID must pass a base64 encoding to WeChat airkiss SDK functions;
Number 2, equipment of client-side code to fill in the public must be consistent and WeChat public,