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.

[参考译文] MSP-EXP432E401Y:在运行时设置静态 IP 地址

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1125791/msp-exp432e401y-setting-static-ip-address-at-runtime

器件型号:MSP-EXP432E401Y

我的项目基于 MQTTclient 示例。

在启动时、我希望读取 GPIO 引脚以确定这是器件 A 还是器件 B、然后根据将 IP 地址设置为192.168.1.10或192.168.1.20的器件而定

我在 main_tirtos.c 中读取 GPIO 时没有问题,但在调用 ti_ndk_config_Global_startupFxn ()之前,我不知道如何设置静态 IP