PaulStoffregen / AltSoftSerial

Software emulated serial using hardware timers for improved compatibility
http://www.pjrc.com/teensy/td_libs_AltSoftSerial.html
334 stars 131 forks source link

Support for .findMulti(); #68

Open Sandwich1699975 opened 1 year ago

Sandwich1699975 commented 1 year ago

Description

I'm requesting support for .findMulti();

Steps To Reproduce Problem

Run code in any IDE

Hardware & Software

Board: UNO Arduino IDE version: 1.8.19 Version info & package name: Arduino AVR Boards 1.8.6 Operating system & version: MacOS 13.1 (22C65), ARM APPLE SILICONE

Arduino Sketch

#include <Arduino.h>
#include <AltSoftSerial.h>

AltSoftSerial TestSerial;

void setup()
{
  TestSerial.findMulti();
}

void loop()
{
  // put your main code here, to run repeatedly:
}

Errors or Incorrect Output

function "Stream::findMulti" (declared at line 125 of "/Users/freddy/.platformio/packages/framework-arduino-avr/cores/arduino/Stream.h") is inaccessibleC/C++(265)

In the platform.io environment.

Or

/Users/freddy/Documents/Arduino/del/del.ino: In function 'void setup()':
del:8:24: error: no matching function for call to 'AltSoftSerial::findMulti()'
   TestSerial.findMulti();
                        ^
In file included from /Users/freddy/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino/HardwareSerial.h:29:0,
                 from /Users/freddy/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino/Arduino.h:233,
                 from /Users/freddy/Documents/Arduino/del/del.ino:1:
/Users/freddy/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino/Stream.h:125:7: note: candidate: int Stream::findMulti(Stream::MultiTarget*, int)
   int findMulti(struct MultiTarget *targets, int tCount);
       ^~~~~~~~~
/Users/freddy/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino/Stream.h:125:7: note:   candidate expects 2 arguments, 0 provided
exit status 1
no matching function for call to 'AltSoftSerial::findMulti()'

In Arduino IDE