您好,我使用PIC18F97 J60和I我已经建立了我的Telnet固件telnet
通信。我在Telnet .C文件中发现了问题,请查找附加文件以供参考。这里,如果是SmithGETLogin,如果我使用CaseDATAUSER在IF的情况下,那么它就不进行身份验证,而且永远不会转到SMESGETGIX密码。但是如果我编写了一个定义TeleNETUsNeads:admin的定义,则定义了TeleNETSpAccess“admin”,然后正确地进行了身份验证。如果我想在运行时更改用户名和密码,那么我就不能在那里使用它的定义值。可以找到解决这个问题的方法。
以上来自于百度翻译
以下为原文
Hi, I am using PIC18F97J60 and I I have built my cutom firmware for telnet communica
tion. I have found problem specifically in telnet.c file
Please find attached file for reference.
Here in case SM_GET_LOGIN, If I used configData.user in if case, then its not authenticating and never goes to case SM_GET_PASSWORD. But If I write
#define TELNET_USERNAME "admin", #define TELNET_PASS "admin", then its authenticating properly.
If I want to change username and password in runtime then I must not use the #defined value there. Can' find way to out from this issue.
Attachment(s)
telnet_c.c (6.45 KB) - downloaded 63 times