This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CC3200 SDK 1.1.0电子邮件问题

Guru**** 605955 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/other-wireless-group/other-wireless/f/other-wireless-technologies-forum/1236172/cc3200-sdk-1-1-0-problem-with-email

您好!

 我正在处理电子邮件示例。

 软件未连接到服务器、实际上、

 SlNetAppEmailOpt_t eMailServerSetting;

 lRetVal = Network_if_GetHostIP (Gmail_host_name、&eMailServerSetting.ip);

 如果我从 PC ping smtp.gmail.com、则返回的 IP 为142.250.145.109

 我得到74.125.193.109。

 "142.250.145.109"实际上是一个 google 地址,而不是 SMTP。

但也可能是一个错误的东西,他遵循的代码,我没有改变。

eMailServerSetting.Family = AF_INET;
eMailServerSetting.Port = Gmail_host_port;
eMailServerSetting.SecurityMethod = SL_SO_SEC_METHO_SSLv3;
eMailServerSetting.SecurityCypher = SL_SEC_MASK_SSL_RSA_WITH_RC4_128_MD5;
lRetVal = sl_NetAppEmailSet (SL_NET_APP_EMAIL_ID、\
NETAPP_ADVANCED_OPT、\
sizeof (SlNetAppEmailOpt_t)、\
(unsigned char*)&eMailServerSetting);

无论如何、 g_cConnectStatus = sl_NetAppEmailConnect ();返回-1。

 你能告诉我哪里出了问题吗?

 我看到有一些小问题、例如

 SL_NetCfgGet (SL_IPV4_STA_P2P_CL_GET_INFO、&isDhcp、&len、
                  (unsigned char *)&IPv4);有效、但返回的值不为零。

 我在此网站的某个位置发现添加了 assert_on_error (lRetVal)注释;

 此致