New Xbox gamepads have a new "share" button and I can't find a way to check if it's pressed.
It is possible?
Yes, Xbox Wireless Controller Model 1914 (aka "Xbox Series X|S Controller") sends the Share button as the first bit of the last byte of the controller data report. Over Bluetooth HID the button uses the Record usage from the Consumer usage page.
Most platform gamepad APIs don't support the Share button. That includes XInput and Windows.Gaming.Input on Windows and joydev on Linux. Also on Linux, the xpad module (the driver for USB-connected Xbox controllers) doesn't support the Share button over USB. You'd need to install xpad-neo, which maps it to the KEY_RECORD input event code. (This is the same event code that the Consumer Record HID usage is normally mapped to.) macOS supposedly supports the Share button through the Game Controller framework but I haven't seen this working yet. Recent versions of Android include a keylayout file to map the button to MEDIA_RECORD.
Related
error message as below
[getToken] Error/Exception: {"nativeStackAndroid":[],"userInfo":null,"message":"907122036: no
right","code":"907122045","line":2568,"column":45,"sourceURL":"http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.huaweipush.letsapp&modulesOnly=false&runModule=true"}
[getToken] Error/Exception: {"nativeStackAndroid":[],"userInfo":null,"message":"907122036: no right","code":"907122045","line":2568,"column":45,"sourceURL":"http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.huaweipush.letsapp&modulesOnly=false&runModule=true"}
The error code indicates that the Push Kit are not enabled. As a result, have no permission to obtain the token. How to enable the Push Kit, pls refer to the this docs.
Sign in to AppGallery Connect and click My projects.
Find and click the desired project in the project list, and click the app for which you need to set Push Kit parameters.
Go to Project settings > Manage APIs and enable Push Kit.
Go to Grow > Push Kit and click Enable now. In the dialog box that is displayed, click OK.
Enable the precise messaging function.
Here below is some checkpoints for the above issue.
First ensure you have enabled the push kit in AppGallery Console
Please check whether you are providing correct app id or not:
String appId = AGConnectServicesConfig.fromContext(MainActivity.this).getString("client/app_id");
pushtoken = HmsInstanceId.getInstance(MainActivity.this).getToken(appId, "HCM");
It is recommended that the getToken method be called in the onCreate method of the first Activity class after app startup. Implement the corresponding listeners for getToken API and observe the logs.
Device: Non-Huawei phones must have HMS Core (APK) installed (which can be downloaded from HUAWEI AppGallery). There is no restriction on Huawei phones.
Network: The phone is connected to the network and the connection is stable.
EMUI version: EMUI 4.0 and EMUI 4.1 (for some devices), and EMUI 5.0 or later It is recommended that you use a device running EMUI 5.0 or later.
I wrote a very simple Windows app that creates a BluetoothLEAdvertisementWatcher. When the OnAdvertisementReceived is called the code called BluetoothLEDevice.FromBluetoothAddressAsync to retrieve the associated bluetooth le device object and I have noticed that the Name property is sometimes filled in correctly and sometimes empty. Does Windows maintain a ble device name cache?
I have gone through the link which explains getting SSID without private library. This works for devices below iOS 12.0.1. From iOS 12.0.1 onwards, the same library is not beneficial anymore. My code snippet is:
CFArrayRef myArray = CNCopySupportedInterfaces();
CFDictionaryRef myDict = CNCopyCurrentNetworkInfo(CFArrayGetValueAtIndex(myArray, 0));
NSString *networkName = CFDictionaryGetValue(myDict, kCNNetworkInfoKeySSID);
These lines crash in Xcode 10 and above. myDict is returned nil. Is the library changed? Any other way to achieve this task?
Additional settings are reqiured in iOS12 for getting Wifi SSID.
Summary is that Apple qoutes:
To use this function in iOS 12 and later, enable the Access WiFi Information capability for your app in Xcode. When you enable this capability, Xcode automatically adds the Access WiFi Information entitlement to your entitlements file and App ID.
Thus, Enable Access WiFi Information for the Bundle ID in developer account. Reenable the associated provisional profiles.
In Xcode, under Targets -> Capabilities -> Access WiFi Information -> Enable it to ON.
I want to get combine attendance of 2 bio matric machine using odoo10
I think if Bio matric machine are synchronized each other may be sorted out my problem
Hope you are using zkem dll file. You have to read all the users from one device (using ReadAllUserID to buffer the data into device's memory and then GetAllUserInfo) then call SetUserInfo for every user id with another device.
You have to have a button on the odoo application like 'Sync', clicking this button, you can trigger the above logic.
If you are like to do it over http please check http://camsunit.com/application/biometric-web-api.html for api details.
There is a field called "device" in deviceSubscription. I assume that it is corresponding to the device ID for the device. And this value is used as a parameter in WL.Server.notifyDevice(userSubscription, device, options) to submit notification for a specific device for a user.
However, when I re-install the apps again, the value in deviceSubscription.device is changed. Therefore, there are different device ID subscribing to an event source although they are actually the same device.
May I know where deviceSubscription.device comes from?
Thanks a lot.
The name "Device ID" is indeed confusing. It does not reference the physical device, rather it references to the application. Thus when you re-install the application, you get a different value for it (it is generated by the client-side framework).