[BUG] WGM110 UDP client endpoint doesn't close and doesn't open
06/178/2020 | 12:21 PM
UDP client endpoint doesn't close.
event system_boot(hw, bootloader_version, major, minor, build, revision_len, revision_data)
call sme_wifi_on()
end
event sme_wifi_is_on(result)
call sme_set_password(8, "password")
call sme_connect_ssid(4, "ssid")
end
dim result
dim endpoint_udp
event sme_interface_status(hw_interface, status)
if(status = 1)
call tcpip_udp_connect(192.168.1.1, 6000, -1)(result, endpoint_udp)
end if
end
event endpoint_status(endpoint, type, streaming, destination, active)
if(endpoint = endpoint_udp && active = 1)
call endpoint_send(endpoint_udp, 5, "hello")
call endpoint_close(endpoint_udp) #doesn't work
end if
end
Log
Regards,
Parminder
Discussion Forums
Answered
Wi-Fi
Answered
With this code the UDP client endpoint doesn't open:
event system_boot(hw, bootloader_version, major, minor, build, revision_len, revision_data)
call sme_wifi_on()
end
event sme_wifi_is_on(result)
call sme_set_password(8, "password")
call sme_connect_ssid(4, "ssid")
end
dim result
dim endpoint_unicast
event sme_interface_status(hw_interface, status)
if(status = 1)
call tcpip_udp_connect(192.168.1.1, 6000, -1)(result, endpoint_unicast)
end if
end
event endpoint_status(endpoint, type, streaming, destination, active)
if(endpoint = endpoint_unicast)
if(active = 1)
call endpoint_send(endpoint_unicast, 5, "hello")
call hardware_set_soft_timer(1000, 0, 1)
end if
if(active = 0)
call tcpip_udp_connect(192.168.1.2, 6001, -1)(result, endpoint_unicast) #it doesn't work
call tcpip_udp_connect(192.168.1.3, 6001, -1)(result, endpoint_unicast) #it work
end if
end if
end
event hardware_soft_timer(handle)
call endpoint_close(endpoint_unicast)
end
Regards,
Parminder
0
It seems that with the latest test firmware version (WGM110-v1.1.1-71dd7bde) this problem has been solved.
Regards,
Parminder
Correct Answer
0
Hi Parminder,
It's great to hear that!
Regards,
Adam
1
Hi,
with last test version of SDK (1.1.1-59cddd38) this problem has returned again.
[BUG] WGM110 UDP client endpoint doesn't close and doesn't open
UDP client endpoint doesn't close.
Log
Regards,
Parminder
With this code the UDP client endpoint doesn't open:
Regards,
Parminder
It seems that with the latest test firmware version (WGM110-v1.1.1-71dd7bde) this problem has been solved.
Regards,
Parminder
Hi Parminder,
It's great to hear that!
Regards,
Adam
Hi,
with last test version of SDK (1.1.1-59cddd38) this problem has returned again.
Regards,
Parminder
Hello,
replied in another forum thread.
Regards,
Marcin