NeoSWSerial icon indicating copy to clipboard operation
NeoSWSerial copied to clipboard

Detect witch instance of NeoSWSerial is calling/handling handleRxChar()

Open nadjibnet opened this issue 7 years ago • 1 comments

Hi,

Using Arduino Uno, I have to GSM module as folow:

NeoSWSerial gsm1(10,11) NeoSWSerial gsm2(5,6)

on my Setup I have registered for the "attachInterrupt"

In my loop() I read from Serial the AT Command, If I have 1:AT => I send AT to gsm1 If I have 2:AT => I send AT to gsm2

the handleRxChar was called and I receive the result of both gsm1, gsm2.

I need make difference between the result of gsm1 and gsm2.

Are there an overload of the handleRxChar (Int RX_PIN, uint8_t c) ?

Thanks

nadjibnet avatar Oct 21 '18 20:10 nadjibnet

commit proposed.

nadjibnet avatar Oct 21 '18 23:10 nadjibnet