MKR1300 and Pro Gateway - 'RingBufferN' does not name a type

Hi,
I have a problem with the generated code by Arduino IOT Cloud for the Arduino Pro Gateway.
I’m trying to connect the gateway to a MKR1300 and gather the data from it.
As soon as I compile the code generated from the Arduino IOT Cloud, the Cloud IDE give me an error you have here:

/home/builder/opt/arduino-builder/arduino-builder -compile -core-api-version 10611 -hardware /home/builder/opt/arduino-builder/hardware -hardware /home/builder/.arduino15/packages -tools /home/builder/opt/arduino-builder/tools -tools /home/builder/.arduino15/packages -built-in-libraries /home/builder/opt/libraries/latest -logger humantags -fqbn arduino:mraa:arm_linux_generic -build-cache /tmp -build-path /tmp/817883515/build -verbose -prefs runtime.tools.dfu-util.path=/home/builder/.arduino15/packages/arduino/tools/dfu-util/0.9.0-arduino1 -prefs runtime.tools.openocd.path=/home/builder/.arduino15/packages/Intel/tools/openocd/0.9.0+0.1 -prefs runtime.tools.nrf5x-cl-tools.path=/home/builder/.arduino15/packages/arduino/tools/nrf5x-cl-tools/9.3.1 -prefs runtime.tools.arm-linux-gcc.path=/home/builder/.arduino15/packages/arduino/tools/arm-linux-gcc/4.9.3 -prefs runtime.tools.avr-gcc.path=/home/builder/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs runtime.tools.flashpack.path=/home/builder/.arduino15/packages/Intel/tools/flashpack/2.0.0 -prefs runtime.tools.i586-poky-linux-uclibc.path=/home/builder/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0 -prefs runtime.tools.arc-elf32.path=/home/builder/.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1 -prefs runtime.tools.arduino101load.path=/home/builder/.arduino15/packages/Intel/tools/arduino101load/2.0.1 -prefs runtime.tools.esptool.path=/home/builder/.arduino15/packages/esp8266/tools/esptool/2.5.0-3-20ed2b9 -prefs runtime.tools.linuxuploader.path=/home/builder/.arduino15/packages/arduino/tools/linuxuploader/1.5.1 -prefs runtime.tools.xtensa-lx106-elf-gcc.path=/home/builder/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9 -prefs runtime.tools.mkspiffs.path=/home/builder/.arduino15/packages/esp8266/tools/mkspiffs/2.5.0-3-20ed2b9 -prefs runtime.tools.arduinoOTA.path=/home/builder/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs runtime.tools.core2-32-poky-linux.path=/home/builder/.arduino15/packages/Intel/tools/core2-32-poky-linux/1.6.2+1.0 -prefs runtime.tools.sketchUploader.path=/home/builder/.arduino15/packages/Intel/tools/sketchUploader/1.6.2+1.0 -prefs runtime.tools.avrdude.path=/home/builder/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino8 -prefs runtime.tools.x86-linux-gcc.path=/home/builder/.arduino15/packages/arduino/tools/x86-linux-gcc/7.2.0 -prefs runtime.tools.CMSIS.path=/home/builder/.arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs runtime.tools.arm-none-eabi-gcc.path=/home/builder/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs runtime.tools.bossac.path=/home/builder/.arduino15/packages/industruino/tools/bossac/1.7.0-industruino -prefs runtime.tools.CMSIS-Atmel.path=/home/builder/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -libraries /tmp/817883515/custom -libraries /tmp/817883515/pinned /tmp/817883515/TEST_mar30a

WARNING: library arduinoiotcloud_0_9_3 claims to run on (samd, esp8266) architecture(s) and may be incompatible with your current board which runs on (mraa) architecture(s).

WARNING: library arduino_connectionhandler_0_4_6 claims to run on (samd, esp32, esp8266) architecture(s) and may be incompatible with your current board which runs on (mraa) architecture(s).

Using library arduino_debugutils_1_0_0 at version 1.0.0 in folder: /home/builder/opt/libraries/latest/arduino_debugutils_1_0_0

Using library arduino_connectionhandler_0_4_6 at version 0.4.6 in folder: /home/builder/opt/libraries/latest/arduino_connectionhandler_0_4_6

In file included from /home/builder/opt/libraries/latest/arduinoiotcloud_0_9_3/src/ArduinoIoTCloud.h:34:0,

from /tmp/817883515/build/sketch/thingProperties.h:1,

from /tmp/817883515/TEST_mar30a/TEST_mar30a.ino:17:

/home/builder/opt/libraries/latest/arduinoiotcloud_0_9_3/src/CloudSerial.h:60:5: error: 'RingBufferN' does not name a type

RingBufferN<CLOUD_SERIAL_TX_BUFFER_SIZE> _txBuffer;

^

/home/builder/opt/libraries/latest/arduinoiotcloud_0_9_3/src/CloudSerial.h:62:5: error: 'RingBufferN' does not name a type

RingBufferN<CLOUD_SERIAL_RX_BUFFER_SIZE> _rxBuffer;

^

In file included from /home/builder/.arduino15/packages/arduino/hardware/mraa/1.0.8/cores/linux/virtual_main.h:77:0,

from /home/builder/.arduino15/packages/arduino/hardware/mraa/1.0.8/variants/linux-armv7/variant.h:4,

from /home/builder/.arduino15/packages/arduino/hardware/mraa/1.0.8/variants/linux-armv7/pins_arduino.h:20,

from /home/builder/.arduino15/packages/arduino/hardware/mraa/1.0.8/cores/linux/Arduino.h:4,

from /tmp/817883515/build/sketch/TEST_mar30a.ino.cpp:1:

/home/builder/.arduino15/packages/arduino/hardware/mraa/1.0.8/cores/linux/DebugSerial.h:76:21: error: conflicting declaration 'CloudSerialClass DebugSerial'

#define CloudSerial DebugSerial

^

/home/builder/opt/libraries/latest/arduinoiotcloud_0_9_3/src/CloudSerial.h:65:25: note: in expansion of macro 'CloudSerial'

extern CloudSerialClass CloudSerial;

^

/home/builder/.arduino15/packages/arduino/hardware/mraa/1.0.8/cores/linux/DebugSerial.h:74:21: note: previous declaration as 'DebugSerial_ DebugSerial'

extern DebugSerial_ DebugSerial;

^

In file included from /tmp/817883515/TEST_mar30a/TEST_mar30a.ino:17:0:

/tmp/817883515/build/sketch/thingProperties.h: In function 'void initProperties()':

/tmp/817883515/build/sketch/thingProperties.h:14:3: error: 'ArduinoCloud' was not declared in this scope

ArduinoCloud.setThingId(THING_ID);

^

/tmp/817883515/build/sketch/thingProperties.h: At global scope:

/tmp/817883515/build/sketch/thingProperties.h:19:1: error: 'LoRaConnectionHandler' does not name a type

LoRaConnectionHandler ArduinoIoTPreferredConnection(APPEUI, APPKEY);

^

/tmp/817883515/TEST_mar30a/TEST_mar30a.ino: In function 'void setup()':

/tmp/817883515/TEST_mar30a/TEST_mar30a.ino:29:3: error: 'ArduinoCloud' was not declared in this scope

ArduinoCloud.begin(ArduinoIoTPreferredConnection);

^

/tmp/817883515/TEST_mar30a/TEST_mar30a.ino:29:22: error: 'ArduinoIoTPreferredConnection' was not declared in this scope

ArduinoCloud.begin(ArduinoIoTPreferredConnection);

^

/tmp/817883515/TEST_mar30a/TEST_mar30a.ino: In function 'void loop()':

/tmp/817883515/TEST_mar30a/TEST_mar30a.ino:43:3: error: 'ArduinoCloud' was not declared in this scope

ArduinoCloud.update();

^

exit status 1

The first error is inside a file I didn’t generate, so suppose it’s a library:

CloudSerial.h:60:5: error: 'RingBufferN' does not name a type

Do you know how can I solve this error?
In attachment my file I’m trying to compile with the cloud IDE.

Thank you

TEST_mar30a.zip (2.13 KB)