diff --git a/libraries/uIP/src/MicroIp.cpp b/libraries/uIP/src/MicroIp.cpp index f26658d..10f090e 100644 --- a/libraries/uIP/src/MicroIp.cpp +++ b/libraries/uIP/src/MicroIp.cpp @@ -27,6 +27,7 @@ extern "C" { #include } +#include "wiring_private.h" #include "MicroIp.h" struct resolv_params { diff --git a/libraries/uIP/src/MicroIpClient.cpp b/libraries/uIP/src/MicroIpClient.cpp index 1266187..2c92266 100644 --- a/libraries/uIP/src/MicroIpClient.cpp +++ b/libraries/uIP/src/MicroIpClient.cpp @@ -25,6 +25,7 @@ extern "C" { } #include "Arduino.h" +#include "wiring_private.h" #include "MicroIp.h" #include "MicroIpClient.h" @@ -226,6 +227,8 @@ void MicroIPClient::do_tcp_socket_connect(void* ptr) int MicroIPClient::wait_tcp_socket_event(process_event_t ev, process_data_t data, void* ptr) { struct tcp_socket_params* params = reinterpret_cast(ptr); MicroIPClient* client = const_cast(params->client); + (void)ev; + (void)data; PRINTF("wait_tcp_socket_event client->state=%d\n", client->state); if(client->event_wait) { @@ -287,6 +290,7 @@ int MicroIPClient::listen(uint16_t port) int MicroIPClient::data_callback(struct tcp_socket *s, void *ptr, const uint8_t *input_data_ptr, int input_data_len) { PRINTF("MicroIPClient::data_callback %d\n", input_data_len); MicroIPClient* client = reinterpret_cast(ptr); + (void)s; int wb = client->receive(input_data_ptr, input_data_len); return (input_data_len - wb); } @@ -294,6 +298,7 @@ int MicroIPClient::data_callback(struct tcp_socket *s, void *ptr, const uint8_t void MicroIPClient::event_callback(struct tcp_socket *s, void *ptr, tcp_socket_event_t event) { PRINTF("MicroIPClient::event_callback %d\n", event); MicroIPClient* client = reinterpret_cast(ptr); + (void)s; client->state = event; client->event_wait= false; post_continue(); diff --git a/libraries/uIP/src/MicroIpUdp.cpp b/libraries/uIP/src/MicroIpUdp.cpp index f7604a5..825a959 100644 --- a/libraries/uIP/src/MicroIpUdp.cpp +++ b/libraries/uIP/src/MicroIpUdp.cpp @@ -25,6 +25,7 @@ extern "C" { } #include "Arduino.h" +#include "wiring_private.h" #include "Udp.h" #include "MicroIP.h" #include "MicroIPUDP.h" @@ -228,6 +229,8 @@ void MicroIPUDP::receive(const uip_ipaddr_t *source_addr, uint16_t source_port, { const uint16_t store_size =static_cast(datalen+sz_pack); struct receive_pack pack = { store_size, *source_addr, source_port }; + (void) dest_addr; + (void) dest_port; PRINTF("MicroIPUDP::receive %d %d %d\n", sz_pack, store_size, datalen ); if( store_size > ringbuf_size(&rxbuf) ) { @@ -276,6 +279,7 @@ void MicroIPUDP::input_callback(struct udp_socket *c, void *ptr, const uint8_t *data, uint16_t datalen) { MicroIPUDP* udp = reinterpret_cast(ptr); + (void)c; udp->receive(source_addr, source_port, dest_addr, dest_port, data, datalen); }