Joke Collection Website - Public benefit messages - Single chip microcomputer controlled by short message

Single chip microcomputer controlled by short message

This is a function that sends a byte.

{

SBUF = sdata

while(TI = = 0);

TI = 0;

}

send(“AT+CMGF = 0 \ r \ n“);

send(“AT+CMGS = 25 \ r \ n“);

Send a byte function, where you use it to send a string?

-

Don't rush to send the things sent by the single chip microcomputer to the mobile phone module.

Send it to the serial assistant of PC first, and see what you send.