Skip to content

Example Sketches for the LARA-R6 are not Compiling #2

Closed
@bboyho

Description

@bboyho

Subject of the Issue

LARA-R6 examples in this repo do not seem to compile. This is more of a lower priority. =)

Your Workbench

I was trying to compile the example skteches for the LARA-R6 using the following:

  • Arduino IDE v2.3.2
  • esp32 by Espressif Systems 3.0.1: ESP32 Wrover Module
  • SparkFun u-Blox Cellular Arduino Library v1.0.0
  • LARA-R6 Examples 8.1 to 8.6

Steps to Reproduce

Arduino outputs this message when trying to compile:

C:\Users\...\Documents\GitHub\SparkFun_RTK_EVK\Example_Sketches\8_1_LARA_UART_Test\8_1_LARA_UART_Test.ino: In constructor 'LARA_R6_Derived::LARA_R6_Derived()':
C:\Users\...\Documents\GitHub\SparkFun_RTK_EVK\Example_Sketches\8_1_LARA_UART_Test\8_1_LARA_UART_Test.ino:64:60: error: no matching function for call to 'SparkFun_ublox_LARA_R6001D::SparkFun_ublox_LARA_R6001D(<brace-enclosed initializer list>)'
   64 |     LARA_R6_Derived() : SparkFun_ublox_LARA_R6001D{LARA_PWR}{} // Pass the LARA_PWR pin into the class so the library can powerOn / powerOff
      |                                                            ^
In file included from c:\Users\...\Documents\Arduino\libraries\SparkFun_u-blox_Cellular_Arduino_Library\src/SparkFun_u-blox_Cellular_Arduino_Library.h:1,
                 from C:\Users\...\Documents\GitHub\SparkFun_RTK_EVK\Example_Sketches\8_1_LARA_UART_Test\8_1_LARA_UART_Test.ino:58:
c:\Users\...\Documents\Arduino\libraries\SparkFun_u-blox_Cellular_Arduino_Library\src/sfe_lara_r6.h:16:7: note: candidate: 'SparkFun_ublox_LARA_R6001D::SparkFun_ublox_LARA_R6001D()'
   16 | class SparkFun_ublox_LARA_R6001D : public SparkFun_ublox_LARA_R6
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~
c:\Users\...\Documents\Arduino\libraries\SparkFun_u-blox_Cellular_Arduino_Library\src/sfe_lara_r6.h:16:7: note:   candidate expects 0 arguments, 1 provided
c:\Users\...\Documents\Arduino\libraries\SparkFun_u-blox_Cellular_Arduino_Library\src/sfe_lara_r6.h:16:7: note: candidate: 'SparkFun_ublox_LARA_R6001D::SparkFun_ublox_LARA_R6001D(const SparkFun_ublox_LARA_R6001D&)'
c:\Users\...\Documents\Arduino\libraries\SparkFun_u-blox_Cellular_Arduino_Library\src/sfe_lara_r6.h:16:7: note:   no known conversion for argument 1 from 'const int' to 'const SparkFun_ublox_LARA_R6001D&'
c:\Users\...\Documents\Arduino\libraries\SparkFun_u-blox_Cellular_Arduino_Library\src/sfe_lara_r6.h:16:7: note: candidate: 'SparkFun_ublox_LARA_R6001D::SparkFun_ublox_LARA_R6001D(SparkFun_ublox_LARA_R6001D&&)'
c:\Users\...\Documents\Arduino\libraries\SparkFun_u-blox_Cellular_Arduino_Library\src/sfe_lara_r6.h:16:7: note:   no known conversion for argument 1 from 'const int' to 'SparkFun_ublox_LARA_R6001D&&'

exit status 1

Compilation error: no matching function for call to 'SparkFun_ublox_LARA_R6001D::SparkFun_ublox_LARA_R6001D(<brace-enclosed initializer list>)'

Expected Behavior

The code should compile with no errors.

Actual Behavior

It does not compile. =\

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions