I am trying to use the library on an nRF52840 (S340) using the internal radio, unfortunately I am stuck at the early beginning since I am not able to run even the exaple NativeAnt code.
The compiler returns the following code:
NativeAnt:32:1: error: 'ArduinoNativeAnt' does not name a type; did you mean 'ArduinoSerialAnt'? 32 | ArduinoNativeAnt ant; | ^~~~~~~~~~~~~~~~ | ArduinoSerialAnt /tmp/arduino_modified_sketch_347487/NativeAnt.ino: In function 'void setup()': NativeAnt:54:5: error: 'ant' was not declared in this scope; did you mean 'int'? 54 | ant.begin(TOTAL_CHANNELS, ENCRYPTED_CHANNELS); | ^~~ | int /tmp/arduino_modified_sketch_347487/NativeAnt.ino: In function 'void loop()': NativeAnt:92:5: error: 'ant' was not declared in this scope; did you mean 'int'? 92 | ant.readPacket(); | ^~~ | int exit status 1 'ArduinoNativeAnt' does not name a type; did you mean 'ArduinoSerialAnt'?
Any suggestion on how to overcome this issue?
Silvio
I am trying to use the library on an nRF52840 (S340) using the internal radio, unfortunately I am stuck at the early beginning since I am not able to run even the exaple NativeAnt code. The compiler returns the following code:
NativeAnt:32:1: error: 'ArduinoNativeAnt' does not name a type; did you mean 'ArduinoSerialAnt'? 32 | ArduinoNativeAnt ant; | ^~~~~~~~~~~~~~~~ | ArduinoSerialAnt /tmp/arduino_modified_sketch_347487/NativeAnt.ino: In function 'void setup()': NativeAnt:54:5: error: 'ant' was not declared in this scope; did you mean 'int'? 54 | ant.begin(TOTAL_CHANNELS, ENCRYPTED_CHANNELS); | ^~~ | int /tmp/arduino_modified_sketch_347487/NativeAnt.ino: In function 'void loop()': NativeAnt:92:5: error: 'ant' was not declared in this scope; did you mean 'int'? 92 | ant.readPacket(); | ^~~ | int exit status 1 'ArduinoNativeAnt' does not name a type; did you mean 'ArduinoSerialAnt'?
Any suggestion on how to overcome this issue? Silvio