-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmodem.pyi
More file actions
52 lines (33 loc) · 1.41 KB
/
modem.pyi
File metadata and controls
52 lines (33 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
"""
Function:
The modem module provides the method of reading device information.
Descriptions taken from:
https://python.quectel.com/doc/quecpython/API_reference/en/syslib/modem.html
"""
def getDevImei():
"""Gets the device IMEI.
:return: If successful, it returns the device IMEI in string type. If failed, it returns the integer value -1.
"""
def getDevModel():
"""Gets the device model.
:return: If successful, it returns the device model in string type. If failed, it returns the integer value -1.
"""
def getDevSN():
"""Gets the device serial number.
:return: If successful, it returns the device serial number in string type. If failed, it returns the integer value -1.
"""
def getDevFwVersion():
"""Gets the device firmware version.
:return: If successful, it returns the device firmware version in string type. If failed, it returns the integer value -1.
"""
def getDevProductId():
"""Gets the device manufacture ID.
:return: If successful, it returns the device manufacture ID in string type. If failed, it returns the integer value -1.
"""
def getDevMAC():
"""Get Device MAC Address
This method retrieves the device's MAC address.
Currently only supported on FCM360W modules.
:return: On success - Returns the device MAC address as a string (format: "XX:XX:XX:XX:XX:XX")
On failure - Returns integer -1
"""