设置:
- 连接stm32f407vet6和LAN8720,连接以太网
代码在这里:
https://github.com/RIOT-OS/RIOT/tree/master/examples/emcute_mqttsn
cd RIOT/examples/emcute_mqttsn
make BOARD=stm32f4discovery all flash term
使用
ifconfig
,未打印以太网接口信息。RIOT 是否支持以太网物理层?请看日志:
> help
2019-05-30 17:23:32,578 - INFO # help
2019-05-30 17:23:32,581 - INFO # Command Description
2019-05-30 17:23:32,584 - INFO # ---------------------------------------
2019-05-30 17:23:32,587 - INFO # con connect to MQTT broker
2019-05-30 17:23:32,592 - INFO # discon disconnect from the current broker
2019-05-30 17:23:32,595 - INFO # pub publish something
2019-05-30 17:23:32,598 - INFO # sub subscribe topic
2019-05-30 17:23:32,603 - INFO # unsub unsubscribe from topic
2019-05-30 17:23:32,606 - INFO # will register a last will
2019-05-30 17:23:32,609 - INFO # reboot Reboot the node
2019-05-30 17:23:32,615 - INFO # ps Prints information about running threads.
2019-05-30 17:23:32,617 - INFO # ping6 Ping via ICMPv6
2019-05-30 17:23:32,623 - INFO # random_init initializes the PRNG
2019-05-30 17:23:32,628 - INFO # random_get returns 32 bit of pseudo randomness
2019-05-30 17:23:32,632 - INFO # nib Configure neighbor information base
2019-05-30 17:23:32,637 - INFO # ifconfig Configure network interfaces
> ifconfig
2019-05-30 17:23:36,554 - INFO # ifconfig
>