0

我将 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'
4

1 回答 1

1

所以我发现我的 wifi 库中的实用程序,尤其是 server.cpp 文件与更新的 github 版本不同。我刚刚更换了我的实用程序,它工作正常。谢谢

于 2013-12-31T21:57:06.450 回答