# demo script zum Testversand einer SMS import time from machine import UART import os print("warte 5s auf Abbruch ...") time.sleep(5) uartOUT = UART(1, baudrate=115200) uartIN = UART(0,baudrate=115200) while True: print("Repl abhängen") os.dupterm(None,1) print("AT Kommando senden") uart.write('ATI\r\n') print("Repl anhängen") os.dupterm(UART(0, 115200)) #uart.write('AT+CPIN?\r\n') #uart.write('AT+CPIN=2389\r\n') # PIN Check #uart.read(5) # read up to 5 bytes print("warte 5s ...") time.sleep(5) print("-------[ naechster Lauf ]-------")