Write the Python script

A Python script is a simple text file with .py extension, it can be written with any text editor.

In case of large application it is useful to split it in more than one file.

The following is the "Hello Word" short Python script example that sends the simplest AT command to the AT command parser, immediately reads response and then ends.

import MDM

print 'Hello World!'

result = MDM.send('AT\r', 0)

print result

c = MDM.read()

print c