Go Down

Topic: wavgat ethernet.h compile error  (Read 210 times) previous topic - next topic

kibudak

hi

ı bought wavgat uno r3 card. I installed ardunio ide, then I installed wavgat's library. ( https://forum.arduino.cc/index.php?topic=540421.0)

 ( If I select "Arduino/Geniuno Uno" card, codes compiled successfully but diddn't install wavgat card. )

then I selected card = "WAVGAT UNO R3".

blink example successfully compile and run wavgat card.

but when I try ethernet examples, It didn't compiled. My codes very easy.

#include <Ethernet.h>


void setup() {
 
}

void loop() {
 
}


if I select "Ardunio/Genuino Uno " card. This code compiled successfully.
But I selected wavgat card, program gave following error.


///////

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\Ethernet\src\Ethernet.cpp: In static member function 'static void EthernetClass::begin(uint8_t*, IPAddress, IPAddress, IPAddress, IPAddress)':

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\Ethernet\src\Ethernet.cpp:87:33: error: request for member 'bytes' in 'ip.IPAddress::_address', which is of non-class type 'uint8_t [4] {aka unsigned char [4]}'

  W5100.setIPAddress(ip._address.bytes);

                                 ^

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\Ethernet\src\Ethernet.cpp:88:38: error: request for member 'bytes' in 'gateway.IPAddress::_address', which is of non-class type 'uint8_t [4] {aka unsigned char [4]}'

  W5100.setGatewayIp(gateway._address.bytes);

                                      ^

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\Ethernet\src\Ethernet.cpp:89:38: error: request for member 'bytes' in 'subnet.IPAddress::_address', which is of non-class type 'uint8_t [4] {aka unsigned char [4]}'

  W5100.setSubnetMask(subnet._address.bytes);

                                      ^

///////


I thing library error must be.  How can I Solve this error.

when I select full example codes same thing occured.

pert

#1
Mar 25, 2019, 02:38 am Last Edit: Apr 02, 2019, 10:01 am by pert
I believe there are a couple different hardware packages available for the LGT8 chips used on these WAVGAT boards. I recommend looking around to see if a better one is available, which might be compatible with the Ethernet library. From the Uno listing in WAVGAT's Aliexpress store, I got this link:
https://github.com/WAVGAT-SZ/WAVGAT/raw/master/%E5%8F%91%E7%BB%99%E5%AE%A2%E6%88%B7.zip
That appears to be an updated version of the package you got from the Google Drive link.

It's so amazing to me that the people from WAVGAT are smart enough to design and mass produce hardware, but too stupid to understand how to properly use GitHub and the Arduino IDE, things that a casual Arduino hobbyist would know after less than a year. This incompetence makes me greatly question the quality of their hardware and software.

I also have found this:
https://github.com/LGTMCU/Larduino_HSP
which seems to have been implemented in a more intelligent manner, but still has some issues.

It's so sleazy how WAVGAT doesn't mention anywhere in their product listings that the Uno does not have an ATmega328P, but instead the LGT8F328P. The LGT chips are very interesting and I think it's great if people make these chips available on a low cost board and provide a support package for the Arduino IDE. But doing this as a scam is unacceptable (and unnecessary). I urge everyone to boycott all WAVGAT products. We shouldn't support this sort of behavior.

KASSIMSAMJI

whenever i see 'wavgat' i remember disposing of several nano boards that i got tricked and bought them at cheap price,
Expert To Be: Machine Learning And Computer/Machine Vision (ML/CV/MV)

starstayler

hi

ı bought wavgat uno r3 card. I installed ardunio ide, then I installed wavgat's library. ( https://forum.arduino.cc/index.php?topic=540421.0)

 ( If I select "Arduino/Geniuno Uno" card, codes compiled successfully but diddn't install wavgat card. )

then I selected card = "WAVGAT UNO R3".

blink example successfully compile and run wavgat card.

but when I try ethernet examples, It didn't compiled. My codes very easy.

#include <Ethernet.h>


void setup() {
 
}

void loop() {
 
}


if I select "Ardunio/Genuino Uno " card. This code compiled successfully.
But I selected wavgat card, program gave following error.


///////

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\Ethernet\src\Ethernet.cpp: In static member function 'static void EthernetClass::begin(uint8_t*, IPAddress, IPAddress, IPAddress, IPAddress)':

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\Ethernet\src\Ethernet.cpp:87:33: error: request for member 'bytes' in 'ip.IPAddress::_address', which is of non-class type 'uint8_t [4] {aka unsigned char [4]}'

  W5100.setIPAddress(ip._address.bytes);

                                 ^

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\Ethernet\src\Ethernet.cpp:88:38: error: request for member 'bytes' in 'gateway.IPAddress::_address', which is of non-class type 'uint8_t [4] {aka unsigned char [4]}'

  W5100.setGatewayIp(gateway._address.bytes);

                                      ^

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\Ethernet\src\Ethernet.cpp:89:38: error: request for member 'bytes' in 'subnet.IPAddress::_address', which is of non-class type 'uint8_t [4] {aka unsigned char [4]}'

  W5100.setSubnetMask(subnet._address.bytes);

                                      ^

///////


I thing library error must be.  How can I Solve this error.

when I select full example codes same thing occured.


Go Up