Ich schrieb diesen Code an die Schnittstelle GSM-Modul, kann jemand den Code überprüfen und mir einige Vorschläge?Schnittstelle GSM-Modul mit nodemcu
hex1= '0x1A';
function delay_s(delay)
delay = delay or 1
local time_to = os.time() + delay
while os.time() < time_to do end
end
uart.alt(1);
uart.setup(0, 9600, 8, uart.PARITY_NONE, uart.STOPBITS_1, 1)
uart.write(0,"AT+IPR=9600\n")
for j = 1, 10 do
uart.write(0, "AT\n")
end
delay_s(1000)
uart.write(0, "AT\n")
delay_s(1000)
uart.write(0, 'AT+CSCS="GSM"\n')
delay_s(1000)
uart.write(0, 'AT+CMGF=1\n')
delay_s(1000)
uart.write(0, 'AT+CMGS="+21654102832"\n')
delay_s(1000)
uart.write(0, " Salut tout le mond !!!\n")
delay_s(1000)
uart.write(0, hex1)
delay_s(1000)
Bitte geben Sie das Modul Modell – cagdas
i das sim900a GSM-Modul http: //www.electrodragon. com/produkt/sim900a-mini-dev-board/ –
Haben Sie anu Antworten von Modul? Wie OK. Bitte tey um genauer zu sein – cagdas