Now that I have the WIZ820io hardware cooperating with the Teensy3 (at least for now) I was hoping not to run into too many software incompatibilities.
I've been using the EthernetBonjour and ArdOSC libraries on a Teensy++2 in a project and was hoping to be able to transfer the code to the Teensy3, but that seems not so trivial. The code compiles and runs fine on the Teensy++2 and does not generate any compiler warnings or error messages. When compiling the same code just switching the board over to the Teensy3 it produces this error message:
/Users/Peter/Desktop/Arduino/libraries/EthernetBonjour/utility/EthernetCompat.cpp: In function 'void ethernet_compat_write_data(int, uint8_t*, uint8_t*, uint16_t)':
/Users/Peter/Desktop/Arduino/libraries/EthernetBonjour/utility/EthernetCompat.cpp:124:25: error: cast from 'uint8_t* {aka unsigned char*}' to 'uint16_t {aka short unsigned int}' loses precision [-fpermissive]
make: *** [Libraries/EthernetBonjour/utility/EthernetCompat.cpp.o] Error 1
I know that there seems questionable type casting involved, but am at a loss of how to fix it as my C++ knowledge is developed enough to use the EthernetBonjour library but not to re-write it. I have a similar issue with the ArdOSC library that was included in previous versions of Teensyduino. Works fine on a Teensy++2 but produces a compiler error message.
Some help would be very appreciated!
I've been using the EthernetBonjour and ArdOSC libraries on a Teensy++2 in a project and was hoping to be able to transfer the code to the Teensy3, but that seems not so trivial. The code compiles and runs fine on the Teensy++2 and does not generate any compiler warnings or error messages. When compiling the same code just switching the board over to the Teensy3 it produces this error message:
/Users/Peter/Desktop/Arduino/libraries/EthernetBonjour/utility/EthernetCompat.cpp: In function 'void ethernet_compat_write_data(int, uint8_t*, uint8_t*, uint16_t)':
/Users/Peter/Desktop/Arduino/libraries/EthernetBonjour/utility/EthernetCompat.cpp:124:25: error: cast from 'uint8_t* {aka unsigned char*}' to 'uint16_t {aka short unsigned int}' loses precision [-fpermissive]
make: *** [Libraries/EthernetBonjour/utility/EthernetCompat.cpp.o] Error 1
I know that there seems questionable type casting involved, but am at a loss of how to fix it as my C++ knowledge is developed enough to use the EthernetBonjour library but not to re-write it. I have a similar issue with the ArdOSC library that was included in previous versions of Teensyduino. Works fine on a Teensy++2 but produces a compiler error message.
Some help would be very appreciated!