Search Results

Search results 1-5 of 5.

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Hi Sener, I would assume that you do not use pfRecvMessageEx (have it as NULL in your IP_MQTT_CLIENT_APP_API that is a parameter of IP_MQTT_CLIENT_Init()). Thus, the IP_MQTT_CLIENT_Publish() would wait for the PUBACK immediately (_ReceiveAck()) and then we indeed return with -1 in that case (because _ReceiveAck() fails). Otherwise we return with 1. However this is blocking and not the desirable way to handle this, and you won't be able to receive any messages (ie anything that is not a PUBACK) d…

  • Hi Sener, As I'm not sure how your implementation looks like, I will instead refer to the IP_MQTT_CLIENT_PublisherSubscriber_2Tasks.c Sample that is part of the emNet shipment. Ideally your application follows the implementation from that sample. If the connection gets lost (remove first switch while target is still connected to second switch), IP_MQTT_CLIENT_Publish() will not return -1. Depending on your QoS setting the target might even send more Publish Messages, because it does not wait for…

  • Hello Sener, This really depends on what exactly you're doing, ie if the devices are actively and regularly sending and receiving packets to each other, or if it is more like a webserver where you only see if the server disconnected when trying to connect. Generally it is not possible to detect if some other device in the network disconnects (unless using keep-alive, or like what you're doing, manually pinging the other side). Best regards, Jannik

  • Hi Henrik, Quote from henrik_the: “"IP_UDP_OnRxIP4" can't find a socket ” I'm not familiar with your code, did you open a socket afterwards? The IP_IGMP_JoinGroup() only joins the IGMP group and does not take care of this, you'd still have to do this yourself. Besides using sockets, it would also be possible to call IP_UDP_Open() after joining the group ( e.g. like IP_UDP_Open(0L /* any foreign host */, 0, ECHO_PORT, _OnRx, NULL); ) and then handle received packets on that port in the _OnRx call…

  • Quote from cesar.rocha: “Hello, I am trying to make a speed test using UDP. I know there is a TCP example and it works fine, I tried to modify to open an UDP Socket and easily send data to a server (server using EchoTool). I commented receive part of the example and I send data out. I could open the socket and I receive my data out on the server side but somehow it is really slow. I checked with Wireshark and I reach only 200 packets per second (by TCP I reached 6000). On Debug Terminal I see al…