WifiNINA lose connection suddenly

HI people,
can someone help me with this code?
The aim is achieved because the code works goodly: I send commands via wifi to the Access Point to turn on and turn off the sensor. The problem is that after sending the command ON, the sensor starts to read but after a variable amount of seconds the device disconnects from AP.
Thank you for the support.
WIFININAh.ino (4.3 KB)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.