It appears that there is an error in your code related to the network configuration. The error message "OSError: -202" suggests that there is an issue with the network setup.

To troubleshoot this issue, you can try the following steps:

  1. Double-check the network configuration values (('192.168.1.102', '255.255.255.0', '192.168.1.1', '218.195.208.65')) to ensure that they are correct. Make sure that the IP address, subnet mask, default gateway, and DNS server are accurate for your network.

  2. Verify that the device you are connecting to (xjsdfz-computer) is reachable and online. Ensure that the device's IP address is correct and that there are no network issues preventing communication.

  3. Check if any firewalls or network security settings are blocking the connection. Temporarily disable any firewall or security software and see if the issue persists.

  4. If the issue persists, try restarting both the device running MicroPython and the computer you are connecting to. This can help resolve any temporary network glitches.

If none of these steps resolve the issue, you may need to provide more information or consult the documentation or support resources for the specific hardware or library you are using (such as the MixGo_PE Lite with ESP32 or the MicroPython MQTT library) to troubleshoot further


原文地址: https://www.cveoy.top/t/topic/hLHq 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录