当前位置:网站首页>haas506 2.0开发教程-高级组件库-modem.info(仅支持2.2以上版本)
haas506 2.0开发教程-高级组件库-modem.info(仅支持2.2以上版本)
2022-06-22 11:10:00 【智云服】
haas506 2.0开发教程-高级组件库-modem.info
1.获取与设备相关的信息
案例说明:
- 使用info模块,获取设备相关信息。
main.py
# -*- coding: UTF-8 -*-
from modem import info
#info模块
print('设备IMEI:',info.getDevImei())
print("设备模组:",info.getDevModel())
print("设备固件版本",info.getDevFwVersion())
print("设备id:",info.getDevProductId())
日志输出
设备IMEI: 867082058707860
设备模组: M601
设备固件版本 amp-v2.02 build on 2022-06-14, 16:25:32
设备id: HaaS506
2.Class-info
| getDevImei | getDevModel | getDevProductId | getDevFwVersion |
|---|---|---|---|
| 获取设备的IMEI | 获取设备model | 获取设备id | 获取设备固件版本号 |
info - 创建info对象
- 函数原型:
modem.info()
- 参数说明:
无
getDevImei - 获取设备的IMEI(国际移动设备识别码)
函数功能:
获取设备的IMEI函数原型:
info.getDevImei()
参数说明:
无返回值:
返回设备的IMEI号
getDevModel - 获取设备model
函数功能:
获取设备model函数原型:
info.getDevModel()
参数说明:
无返回值:
返回设备model
getDevProductId - 获取设备id
函数功能:
获取设备id函数原型:
info.getDevProductId()
参数说明:
无返回值:
返回设备id
getDevFwVersion - 获取设备固件版本号
函数功能:
获取设备固件版本号函数原型:
info.getDevFwVersion()
参数说明:
无返回值:
返回固件版本号
边栏推荐
- Ones attends the first "Lean Software Engineering Conference" to share performance improvement practices
- Vector data of Zunyi city's benchmark land price in 2022 (WGS84)
- 【软工】 软件体系结构
- 【软工】 概论 & 过程和生命周期建模
- 6-9 inter application communication - sub application communication
- The R language dplyr package mutate function divides two numeric variables in the dataframe to create a new data column (create a new variable)
- 奋斗吧,程序员——第四十二章 会挽雕弓如满月,西北望,射天狼
- R language uses user-defined functions to write step activation functions for deep learning and visualize step activation functions
- 2022年遵义市土地基准地价矢量数据(WGS84)
- Should the theme of the IDE be bright or dark? Here comes the ultimate answer!
猜你喜欢

electron添加SQLite數據庫
![[Software Engineering] Introduction & process and life cycle modeling](/img/92/433e2fae846406252ee0d4c47bd54b.png)
[Software Engineering] Introduction & process and life cycle modeling

Typical life cycle model of information system project

From prototype chain to inheritance, illustrate the context and recommend collection

庖丁解牛,这八个MySQL经典错误,你遇到几个?

"Dare not doubt the code, but have to doubt the code" a network request timeout analysis

puzzle(019)平面正推问题

Heidisql inserts records. There are always errors. How do you change them?

MAML (Model-Agnostic Meta-Learning) 解读

A special file upload
随机推荐
社恐?自我介绍时大脑一片空白?
7-1 框架发布 - 通过npm发布框架
[cloud picture] episode 244 three minute understanding of container image service
Go microservice (I) - getting started with RPC
Today, how does sysak implement business jitter monitoring and diagnosis Take you through Anolis OS 25-26
【软工】获取需求
canvas简单的粒子效果的实现
2022 state of agile coaching Report
推薦一款M1芯片電腦快速搭建集群的虛擬機軟件
2022 the latest software testing classic summarized by major manufacturers. After reading it, I'm not afraid I won't get an offer
CVPR 2022 Oral | 以运动为导向的点云单目标跟踪新范式
HMS core news industry solution: let technology add humanistic temperature
R语言使用MatchIt包进行倾向性匹配分析、使用match.data函数构建匹配后的样本集合、使用可视化分析检验倾向性评分匹配后样本中的所有协变量的平衡情况
Idr Display function obtains the summary statistical information of Poisson regression Poisson model (initial event density ratio IDR value, adjusted event density ratio IDR value and its confidence i
奋斗吧,程序员——第三十八章 旧时茅店社林边,路转溪头忽见
Microsoft edge browser dev 104 is released, and the deep / shallow theme switching is smoother
How much memory does a TCP connection occupy?
AGCO AI frontier promotion (6.22)
奋斗吧,程序员——第四十六章 此情可待成追忆,只是当时已惘然
Daily question 5-1636 Sort arrays in ascending order by frequency