Re: Trying to compile gateway firmware
Posted by
vysocan on
URL: http://ohs.356.s1.nabble.com/Trying-to-compile-gateway-firmware-tp10p11.html
Hello Julius,
yes, for Ethernet and other libraries you have to use the ones I have on GitHub, and remove the old ones. Best is to create separate copy of Arduino IDE environment just for gateway.
For Serial problem, it basically complain that gateway code is defining Serial 0 and Arduino is trying to initialize same Serial 0. Simple workaround is to find file HardwareSerial0.cpp, and change:
#if defined(HAVE_HWSERIAL0)
to
#if defined(_HAVE_HWSERIAL0)
I was not yet able to find the way to disable include of Arduino Serial 0, although disabling Serial 1 works just fine.

Serial 0 is defined in NilGSM.cpp(GSM modem routines), and Serial 1 NilRS485(RS485 routines).
Adam