SDK v1.3,当收到1025端口发送过来的广播消息后,会发送应答消息i am a plug等等
默认端口是
ptrespconn.proto.udp->local_port = 1025;
因为看不到源码,只看到得到doc,所以猜想是否是local_port和remote_port都是1025?
我现在希望esp的接收端口不变,但发送端口可以随机,或者发送端口改成另外一个值,请问在哪里能做修改,谢谢
user_devicefind发送应答消息时的port能否随机
Re: user_devicefind发送应答消息时的port能否随机
Postby succu » Sun Aug 30, 2015 10:47 pm
谢谢答复,非常清晰,目前我遇到的情况是这样的
用pc和手机分别向esp8266 发送udp数据
pc端:localport 12345 。发送端口和接收端口都固定是12345
esp8266收到udp数据后向pc端的12345发送应答信息,一切顺利
手机端:localport。发送端口随机,但接收端口固定也是12345
esp8266收到udp数据后向手机端的12345发送应答信息,那么就永远收不到了
区别只在于手机端的发送端口是随机生成的
用的是espconn_send
请问这是sdk的一个bug吗,remoteport remoteip 等等都没有问题的
用pc和手机分别向esp8266 发送udp数据
pc端:localport 12345 。发送端口和接收端口都固定是12345
esp8266收到udp数据后向pc端的12345发送应答信息,一切顺利
手机端:localport。发送端口随机,但接收端口固定也是12345
esp8266收到udp数据后向手机端的12345发送应答信息,那么就永远收不到了
区别只在于手机端的发送端口是随机生成的
用的是espconn_send
请问这是sdk的一个bug吗,remoteport remoteip 等等都没有问题的
Who is online
Users browsing this forum: No registered users and 85 guests
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.