Home > other >  About Z - stack protocol stack HalUARTWrite () function USES the problem
About Z - stack protocol stack HalUARTWrite () function USES the problem

Time:09-22

HalUARTWrite the call to a serial port to send data, one call no problem, but if the call many times, skips steps between the two HalUARTWrite, directly to the two strings together sent to the serial port, how is this to return a responsibility excuse me? How to deal with?
For example,
HalUARTWrite (0, CGCLASS, strlen (CGCLASS));
Delay_s (1);
HalUARTWrite (0, CGDCONT, strlen (CGDCONT));
Delay_s (1);
HalUARTWrite (0, CGATT, strlen (CGATT));
Delay_s (1);
HalUARTWrite (0, CIPCSGP, strlen (CIPCSGP));
Delay_s (1);

Intermediate delay completely useless, the program will run all of the first delay, then all one-time output string,
Like this



Waiting for a few seconds later, a one-time output all content, was like the first time, for advice

CodePudding user response:

This is according to your program execution, but just write the data into the serial buffer, call HalUARTWrite return value, then the next step

CodePudding user response:

Who taught you to z - stack can be continuous use all sorts of sending function inside, and in the middle on the delay?

CodePudding user response:

The building Lord finally solved? I also want to send data through ESP8266 networking
  • Related