This command sends a string to the AT command interface.
The first input parameter string is a Python string to send to the AT command interface.
The second input parameter timeout is a Python integer, measured in 1/10s, and is important in online mode when flow control is activated. In fact it represents the maximum time to wait for the string to be sent to the AT command interface when buffer is full and flow control blocks further data. The timeout range is (0 ÷ 32767).
This method returns immediately after the string has been sent to the AT interface or after the timeout period if the whole string could not be sent to the AT interface. The return value is a Python integer which is -1 if the timeout period has expired, 1 otherwise.
Example:
a = MDM2.send('AT', 5)
sends string 'AT' to AT command handling, possibly waiting for 0.5 s, assigning the return value to a.
|
|
Note: The buffer available for MDM2.send command is 32768 bytes for product versions 12.xx.xxx or 4096 bytes for product versions 13.xx.xxx and 18.11.004. |