我将 UDP 放入我的库中并将其包含在我的草图中。我仍然收到错误但不同的错误,这与我的 cpp 文件有关。这是我得到的错误。有谁知道如何解决这些问题?非常感谢您的帮助。我需要打开我的记事本++并包含一些东西吗?
C:\Users\AlbertR\Desktop\arduino-1.0.3\libraries\WiFi1\WiFiUdp.cpp: In member function 'virtual uint8_t WiFiUDP::begin(uint16_t)':
C:\Users\AlbertR\Desktop\arduino-1.0.3\libraries\WiFi1\WiFiUdp.cpp:25: error: 'UDP_MODE' was not declared in this scope
C:\Users\AlbertR\Desktop\arduino-1.0.3\libraries\WiFi1\WiFiUdp.cpp: In member function 'virtual int WiFiUDP::beginPacket(IPAddress, uint16_t)':
C:\Users\AlbertR\Desktop\arduino-1.0.3\libraries\WiFi1\WiFiUdp.cpp:74: error: 'UDP_MODE' was not declared in this scope
C:\Users\AlbertR\Desktop\arduino-1.0.3\libraries\WiFi1\WiFiUdp.cpp: In member function 'virtual int WiFiUDP::endPacket()':
C:\Users\AlbertR\Desktop\arduino-1.0.3\libraries\WiFi1\WiFiUdp.cpp:83: error: 'sendUdpData' is not a member of 'ServerDrv'
C:\Users\AlbertR\Desktop\arduino-1.0.3\libraries\WiFi1\WiFiUdp.cpp: In member function 'virtual size_t WiFiUDP::write(const uint8_t*, size_t)':
C:\Users\AlbertR\Desktop\arduino-1.0.3\libraries\WiFi1\WiFiUdp.cpp:93: error: 'insertDataBuf' is not a member of 'ServerDrv'
C:\Users\AlbertR\Desktop\arduino-1.0.3\libraries\WiFi1\WiFiUdp.cpp: In member function 'virtual IPAddress WiFiUDP::remoteIP()':
C:\Users\AlbertR\Desktop\arduino-1.0.3\libraries\WiFi1\WiFiUdp.cpp:149: error: 'getRemoteData' is not a member of 'WiFiDrv'
C:\Users\AlbertR\Desktop\arduino-1.0.3\libraries\WiFi1\WiFiUdp.cpp: In member function 'virtual uint16_t WiFiUDP::remotePort()':
C:\Users\AlbertR\Desktop\arduino-1.0.3\libraries\WiFi1\WiFiUdp.cpp:159: error: 'getRemoteData' is not a member of 'WiFiDrv'