Changes for page 01 Lua Functions

Last modified by Theodore Xu on 2023/10/26 10:51

From version 5.5
edited by Stone Wu
on 2022/07/12 09:15
Change comment: There is no comment for this version
To version 5.7
edited by Stone Wu
on 2022/07/12 09:20
Change comment: (Autosaved)

Summary

Details

Page properties
Content
... ... @@ -1,4 +1,4 @@
1 -= **1 Interface Description** =
1 += **1 Interface description** =
2 2  
3 3  == **Data type definition** ==
4 4  
... ... @@ -92,22 +92,20 @@
92 92  1. From the print result, the first line and the second line are successfully called and returns true; the third line fails the call, the error message is translated as: the bar student has been registered, and there is indeed an error in the code.
93 93  1. The fourth line of code uses two variables to receive the return value. The call failed, the first variable stat is nil, and the second variable err stores the error message. Then print it out using print, which is the output of the third line. This example shows how to capture and view the error message.
94 94  
95 -== **Modification of the Print Function** ==
95 +== **Modification of print function** ==
96 96  
97 -For the convenience of remote development, the print data is sent to the front end (web page) by means of network transmission, and the user can see the result of the debug output, because it consumes certain data and occupies the bandwidth of the server (or occupies server resources). So make the following restrictions:
97 +For the convenience of remote development, the print data is sent to the front end (web page) by means of network transmission, and the user can see the result of the debug output, because it consumes certain data and occupies the bandwidth of the server (or occupies server resources). So the following restrictions are made.
98 98  
99 -**1.Interval limit: **When debugging, transfer once every 2~~3 seconds;
99 +1. **Interval limit: **When debugging, transfer once every 2~~3 seconds;
100 +1. **Data limit: **The transfer data cannot be larger than 1.5KB in a single transmission, otherwise the extra part will be ignored;
101 +1. **Transmission limit: **The data transmission will be stopped automatically after the debugging windows is not closed normally. Only when it is in the debugging window and the switch is on, there is data transmission;
100 100  
101 -**2.Data limit: **The transfer data cannot be larger than 1.5KB, and the extra part will be ignored;
102 -
103 -**3.Transmission limit: **The data transmission will be stopped automatically after the debugging windows is not closed normally. Only when it is in the debugging window and the switch is on, there is data transmission;
104 -
105 105  Users should pay attention to avoid printing a lot of useless information, should minimize the debug output
106 106  
107 107  In addition, please refer to the front-end documentation for how to use view debugging.
108 108  
109 109  (((
110 -= **2 Address Operation** =
108 += **2 Address operation** =
111 111  
112 112  
113 113  )))