directip-stop.gcom 256 B

12345678910111213141516
  1. opengt
  2. set com 115200n81
  3. set comecho off
  4. set senddelay 0.05
  5. waitquiet 1 0.2
  6. :start
  7. send "AT!SCACT=0,3^m"
  8. waitfor 5 "OK"
  9. if % = 0 goto hangupok
  10. print "WWAN error. Hangup failed.\r\n"
  11. exit 1
  12. :hangupok
  13. print "WWAN connection established.\r\n"
  14. exit 0