Last Updated on : 2024-05-11 10:30:07download
With the Device Management BizBundle SDK, you can request the following information:
// Get device information management class DeviceDetailInfoManager. Call getDeviceDetailInfo() to get the device details.
IDeviceDetailInfoManager manager = ThingDeviceDetailKit.getInstance().getDeviceInfoManager();
manager.getDeviceDetailInfo(deviceId, deviceDetailInfo -> {
StringBuilder sb = new StringBuilder();
if (deviceDetailInfo != null) {
sb.append("Device ID:").append(deviceDetailInfo.devId).append("\n");
sb.append("Device time zone:").append(deviceDetailInfo.timezone).append("\n");
sb.append("Device IP address:").append(deviceDetailInfo.ip).append("\n");
sb.append("Device signal strength:").append(deviceDetailInfo.netStrength).append("\n");
sb.append("Device connection mode:").append(deviceDetailInfo.connectAbility.name()).append("\n");
sb.append("Device MAC address:").append(deviceDetailInfo.mac).append("\n");
sb.append("Device local IP address:").append(deviceDetailInfo.lanIp).append("\n");
sb.append("Device Wi-Fi signal strength:").append(deviceDetailInfo.wifiSignal).append("\n");
sb.append("Channel ID:").append(deviceDetailInfo.channel).append("\n");
sb.append("Device manufacturer name:").append(deviceDetailInfo.vendorName).append("\n");
sb.append("Device RSRP value:").append(deviceDetailInfo.rsrp).append("\n");
sb.append("Device ICCID:").append(deviceDetailInfo.iccid).append("\n");
} else {
sb.append("No info");
}
deviceInfo.setText(sb.toString());
});
For more information, see the Device Management Module in the BizBundle SDK Demo.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback