[ ]我在ESP8266的SDK中找到了协议栈的ARP表位于etharp.c中,我在main函数中需要对ARP表进行一些分析,又不想大改底层。于是我在etharp.h中声明了一个新的函数read_etharp_table(void)用于获取ARP表的全部内容,并且在etharp.c中进行了定义,并且在主函数前对etharp.h添加了应用。
[ ]但是在编译时提示read_etharp_table(void)未定义,找了很久不知道问题所在。
[ ]并且发现etharp.c中本来有的void etharp_tmr(void)能够被正常编译,感觉很迷。
[ ]然后又进行了下面的实验:我将void etharp_tmr(void)改为unsigned char etharp_tmr(void),并且将返回值设为100。在主函数中调用,并且打印返回值,发现改之前和改之后返回值都为0,似乎对etharp.c的修改无效。
[ ]是因为eclipse的编译环境有什么特殊的配置吗,希望有人知道能给出答案,谢谢。
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.