Hi all,
The code from github does not compile with the following error:
[Error] Virt_Chan.cpp@15,60: too few arguments to function 'uint32_t W5500_read_UDP_pckt(W5500_chip*, uint8_t, unsigned char*, uint32_t)'
[ERROR] .\source\Virt_Chan.cpp: In function 'int RTP_gateway(W5500_chip*)':
.\source\Virt_Chan.cpp:15:60: error: too few arguments to function 'uint32_t
W5500_read_UDP_pckt(W5500_chip*, uint8_t, unsigned char*, uint32_t)'
size_UDP = W5500_read_UDP_pckt(W5500, RTP_SOCKET, RX_data);
It seems that the function call ( from Virt_Chan.cpp ) to WS5500 ( W5500.cpp) needs an extra parameter, named len of type uint32.
This needs to be ( in Virt_Chan.cpp ):
size_UDP = W5500_read_UDP_pckt(W5500, RTP_SOCKET, RX_data, RX_size); //RX_size is add.
Am i correct?
Evert Verduin
Hi all,
The code from github does not compile with the following error:
[Error] Virt_Chan.cpp@15,60: too few arguments to function 'uint32_t W5500_read_UDP_pckt(W5500_chip*, uint8_t, unsigned char*, uint32_t)'
[ERROR] .\source\Virt_Chan.cpp: In function 'int RTP_gateway(W5500_chip*)':
.\source\Virt_Chan.cpp:15:60: error: too few arguments to function 'uint32_t
W5500_read_UDP_pckt(W5500_chip*, uint8_t, unsigned char*, uint32_t)'
size_UDP = W5500_read_UDP_pckt(W5500, RTP_SOCKET, RX_data);
It seems that the function call ( from Virt_Chan.cpp ) to WS5500 ( W5500.cpp) needs an extra parameter, named len of type uint32.
This needs to be ( in Virt_Chan.cpp ):
size_UDP = W5500_read_UDP_pckt(W5500, RTP_SOCKET, RX_data, RX_size); //RX_size is add.
Am i correct?
Evert Verduin