
-4-
v4.9
7.3.4. Downloading files to Waspmote ..........................................................................................................................38
7.3.5. Downloading files to 3G/GPRS module .............................................................................................................39
7.3.6. Log out the FTPS server ...........................................................................................................................................39
8. SMTP and POP3 related functions.................................................................................................... 40
8.1. Sending email with SMTP ......................................................................................................................................................40
8.1.1. Setting the SMTP server ...........................................................................................................................................40
8.1.2. Setting the sender address and name ................................................................................................................40
8.1.3. Setting the recipient address and name ............................................................................................................40
8.1.4. Setting the subject and the body.........................................................................................................................41
8.1.5. Attaching files ..............................................................................................................................................................41
8.1.6. Sending the email ......................................................................................................................................................41
8.2. Receiving emails with POP3 ..................................................................................................................................................42
8.2.1. Setting the POP3 server parameters ...................................................................................................................42
8.2.2. Getting a list of emails ..............................................................................................................................................42
8.2.3. Getting the header of an email .............................................................................................................................42
8.2.4. Getting an email .........................................................................................................................................................43
8.2.5. Deleting an email .......................................................................................................................................................43
9. HTTP and HTTPS ................................................................................................................................ 44
9.1. HTTP connections .....................................................................................................................................................................44
9.1.1. GET method .................................................................................................................................................................44
9.1.2. POST method ...............................................................................................................................................................44
9.1.3. Server response ..........................................................................................................................................................45
9.2. Reading an URL ..........................................................................................................................................................................45
9.3. Sending a frame to Meshlium ..............................................................................................................................................46
9.4. HTTPS connections ..................................................................................................................................................................47
9.4.1. HTTPS function ...........................................................................................................................................................48
10. GPS .................................................................................................................................................... 49
10.1. Differences between GPS modes .....................................................................................................................................49
10.2. Technical data from the GPS receiver ..............................................................................................................................49
10.3. Starting GPS ..............................................................................................................................................................................50
10.4. Stopping the GPS ...................................................................................................................................................................51
10.5. Managing GPS data ...............................................................................................................................................................51
11. TCP and UDP connections ............................................................................................................... 53
11.1. Configuration of the 3G/GPRS module for TCP and UDP .........................................................................................53
11.2. Getting the IP assigned to the module ...........................................................................................................................54
11.3. Query a IP address from a domain name .......................................................................................................................54
11.4. Query a domain name from a IP address .......................................................................................................................55
11.5. Working in single client mode ...........................................................................................................................................55
11.5.1. Creating a socket .....................................................................................................................................................55
11.5.2. Sending and receiving data .................................................................................................................................56
11.5.3. Closing the socket ...................................................................................................................................................56
Index