Skip to content

error #1

@hasantunacoder

Description

@hasantunacoder

Arduino:1.8.13 (Windows Store 1.8.42.0) (Windows 10), Kart:"Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

GsmAsync02NetworkStatus:41:22: error: no matching function for call to 'GsmAsync::GsmAsync(HardwareSerial*&)'

GsmAsync gsmAsync(gsm);

                  ^

In file included from C:\Users\hsntu\AppData\Local\Temp\arduino_modified_sketch_108564\GsmAsync02NetworkStatus.ino:22:0:

C:\Users\hsntu\Documents\Arduino\libraries\GsmAsync-master\src/GsmAsync.h:46:5: note: candidate: GsmAsync::GsmAsync()

 GsmAsync();

 ^~~~~~~~

C:\Users\hsntu\Documents\Arduino\libraries\GsmAsync-master\src/GsmAsync.h:46:5: note: candidate expects 0 arguments, 1 provided

C:\Users\hsntu\Documents\Arduino\libraries\GsmAsync-master\src/GsmAsync.h:43:7: note: candidate: constexpr GsmAsync::GsmAsync(const GsmAsync&)

class GsmAsync

   ^~~~~~~~

C:\Users\hsntu\Documents\Arduino\libraries\GsmAsync-master\src/GsmAsync.h:43:7: note: no known conversion for argument 1 from 'HardwareSerial*' to 'const GsmAsync&'

C:\Users\hsntu\Documents\Arduino\libraries\GsmAsync-master\src/GsmAsync.h:43:7: note: candidate: constexpr GsmAsync::GsmAsync(GsmAsync&&)

C:\Users\hsntu\Documents\Arduino\libraries\GsmAsync-master\src/GsmAsync.h:43:7: note: no known conversion for argument 1 from 'HardwareSerial*' to 'GsmAsync&&'

exit status 1

no matching function for call to 'GsmAsync::GsmAsync(HardwareSerial*&)'

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions