MDM2.getDCD()

This command gets Carrier Detect (DCD) from the AT command interface.

It has no input parameter.

The return value is a Python integer which is 0 if DCD is set to OFF or 1 if DCD is set to ON.

 

Example:

 

cd = MDM2.getDCD()

 

gets DCD from AT command handling, assigning the return value to cd.