mirror of
https://github.com/srlabs/blue-merle.git
synced 2025-01-03 03:20:52 -05:00
functions: Provide a method to read the SIM ID
We can use the identifier of the SIM as a stable token to derive a deterministic IMEI rather than the IMSI which is only available once the SIM has been (PIN) unlocked.
This commit is contained in:
parent
1a052c57e2
commit
dfbcbe7506
@ -28,6 +28,11 @@ RANDOMIZE_MACADDR () {
|
||||
# You need to restart the network, i.e. /etc/init.d/network restart
|
||||
}
|
||||
|
||||
READ_ICCID() {
|
||||
gl_modem AT AT+CCID
|
||||
}
|
||||
|
||||
|
||||
READ_IMEI () {
|
||||
local answer=1
|
||||
while [[ "$answer" -eq 1 ]]; do
|
||||
|
Loading…
Reference in New Issue
Block a user