Get Device Information
Menu: Supported by each device
Flutter Example:
/// Get device information evt
getDeviceInfoOnly(
evtBase: _VBusEvtBase.base_app_get,
evtType: _VBusEvtType.intapp_get_device_info),
/// Get device information
libManager.send(evt: CmdEvtType.getDeviceInfo, json: jsonEncode(json));
JSON Fields Sent by the App:
Field Name | Field Type | Field Description |
---|---|---|
deivce_id | int | Device ID |
firmware_version | int | Firmware version |
mode | int | Mode 0: Exercise mode 1: Sleep mode |
batt_status | int | Battery status 0: Normal 1: Charging 2: Full 3: Low battery |
energe | int | Battery level |
pair_flag | int | Pairing status 0: Not paired 1: Paired |
reboot | int | Whether to reboot If true, the app will sync configuration to the device after restart |
bind_confirm_method | int | Pairing confirmation method 0: Default (Note: custom ID number is valid, timeout value is invalid) 1: Single tap [key below] 2: Long press [key below] 3: Screen touch, horizontal confirmation and cancel (confirm on the left) 4: Screen touch, horizontal confirmation and cancel (confirm on the right) 5: Screen touch, vertical confirmation and cancel (confirm on the top) 6: Screen touch, vertical confirmation and cancel (confirm on the bottom) 7: Click (right side key) |
bind_confirm_timeout | int | Timeout duration Maximum is 15 seconds, 0 means no timeout |
platform | int | Platform of the device 0: Nordic 10: Realtek 8762x 20: Cypress Psoc6 30: Apollo3 40: Chipone 50: Nordic + Realtek, Rui Kun 80: 5340 90: Jixing 96:JL 97:Bestchnic 98:Silfi Nor 99:Silfi Nand |
shape | int | Shape of the device 0: Default (gt01 square) 1: Circular 2: Square 3: Elliptical |
dev_type | int | Device type 0: Default (gt01 watch) 1: Bracelet 2: Watch |
user_defined_dial_main_version | int | Custom dial main version (starting from 1) 0: Corresponding custom dial feature not supported |
cloud_clock_dial_version | int | Cloud clock dial version (starting from 0) Corresponding feature available in the multi_dial menu (Deprecated, same as user_defined_dial_main_version) |
show_bind_choice_ui | int | Whether to show UI for binding confirmation in the firmware 0: No app prompting required 1: App prompting required |
bootload_version | int | Bootloader version information for Nordic platform (minimum is 1) |
Example:
```json { "batt_status": 0, "bind_confirm_method": 0, "bind_confirm_timeout": 0, "bootload_version": 0, "cloud_clock_dial_version": 2, "deivce_id": 7453, "dev_type": 2, "energe": 32, "firmware_version": 2, "mode": 1, "pair_flag": 1, "platform": 30, "reboot": 0, "shape": 2, "show_bind_choice_ui": 0, "user_defined_dial_main_version": 2 }