MDK-ARM Keil, MDK-ARM Datasheet - Page 95
![KIT REALVIEW MCU DEVELOPMENT](/photos/9/32/93274/mdk-arm_sml.jpg)
MDK-ARM
Manufacturer Part Number
MDK-ARM
Description
KIT REALVIEW MCU DEVELOPMENT
Manufacturer
Keil
Type
Compiler and IDEr
Specifications of MDK-ARM
For Use With/related Products
ARM MCUs
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- Current page: 95 of 156
- Download datasheet (3Mb)
Getting Started: Building Applications with RL-ARM
Sending a Fixed Email Message
Once the server has been configured, the application starts the SMTP client by
calling the smtp_connect() function. This function connects to an SMTP server,
sends a single email, disconnects from the server, and finally calls a callback
function.
smtp_connect ((U8 *) &srv_ip, 25, smtp_cback);
Smtp_connect() requires three parameters. The first parameter is the SMTP
server IP address. The second parameter is the port number on that the SMTP
server is running; the standard, well-known SMTP port is “25”. Finally, we pass
the name of the function that will be called when the SMTP session finishes.
The email message is composed by the smtp_connect() function by calling the
user-defined SMTP client interface function smtp_cbfunc() stored in the
SMTP_uif.c
U16 smtp_cbfunc (U8 code, U8 *buf, U16 buflen, U16 *pvar xcnt)
During the SMTP session, this function is called several times. Each time it is
called, a different code is passed. This is in order to request a different element
of the email message: sender’s email address, destination address, subject, and
finally the message. Each part of the message must be copied into the buffer,
which is passed as the second parameter. The third parameter passes the
maximum size of the message buffer. This will vary depending on the
underlying maximum segment size of the TCP/IP network. A very simple
message can be sent as follows:
switch (code)
}
case 0:
case 1:
case 2:
case 3:
len = str_copy (buf, "sender@isp.com");
break;
len = str_copy (buf, "receiver@isp.com);
break;
len = str_copy (buf, "Hello RL-TCPnet");
break;
len = str_copy (buf, "Email from RL-TCPnet.");
break;
file:
{
//senders email address
//recipient email address
//subject line
//message
95
Related parts for MDK-ARM
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![MDK-ARM-B](/photos/28/43/284363/mdk-arm-basic_tmb.jpg)
Part Number:
Description:
KIT REALVIEW MCU DEVELOPMENT
Manufacturer:
Keil
Datasheet:
![MDK-ARM-B-SM](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software SUPPORT EXTENSION FOR MDK-ARM-B
Manufacturer:
Keil Software
![MDK-ARM-SM](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software SUPPORT EXTENSION FOR MDK-ARM
Manufacturer:
Keil Software
![MDK-ARM-BASIC](/photos/28/43/284363/mdk-arm-basic_tmb.jpg)
Part Number:
Description:
KIT REALVIEW MCU DEVELOPMENT
Manufacturer:
Keil
Datasheet:
![MDK-ARM-UF](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software MCU DEV KIT FOR ARM UPG TO FLOATING LIC
Manufacturer:
Keil Tools
![MDK-ARM-F](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software MCU DEV KIT FOR ARM W/ FLOATING LICENSE
Manufacturer:
Keil Software
![MDK-ARM3.1](/photos/26/86/268691/landingpagekeilrealviewarmkit_tmb.jpg)
Part Number:
Description:
Development Software MCU DEV KIT FOR ARM uVISION & C++ & RTX
Manufacturer:
Keil Tools
![MDK-ARM-SMB](/images/no-image3.png)
Part Number:
Description:
Development Software SUPP LICENSE RENEWAL 90+ DAYS NO TECH SUP
Manufacturer:
Keil Software
![KEIL-PK51-INTL](/images/manufacturer_photos/0/6/609/silicon_laboratories_inc_tmb.jpg)
Part Number:
Description:
KEIL C-COMPILER INTERNATIONAL
Manufacturer:
Silicon Laboratories Inc
![OM10045](/photos/9/21/92162/om10045_tmb.jpg)
Part Number:
Description:
BOARD EVAL FOR LPC213X ARM MCU
Manufacturer:
NXP Semiconductors
Datasheet:
![TWR-K60N512-KEIL](/images/manufacturer_photos/0/2/262/freescale_semiconductor_tmb.jpg)
Part Number:
Description:
K60N512 Keil Tower Kit
Manufacturer:
Freescale Semiconductor
Datasheet: