1
0

getimsi.gcom 242 B

1234567891011121314151617
  1. opengt
  2. set com 115200n81
  3. set comecho off
  4. set senddelay 0.02
  5. waitquiet 0.2 0.2
  6. flash 0.1
  7. :start
  8. send "AT+CIMI^m"
  9. get 1 "^m" $s
  10. get 1 "^m" $s
  11. let x = len($s)
  12. if x<2 goto continue
  13. let $s = $right($s, x-1)
  14. print $s
  15. :continue
  16. exit 0