SlashDevin / NeoSWSerial

Efficient alternative to SoftwareSerial with attachInterrupt for RX chars, simultaneous RX & TX
173 stars 42 forks source link

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

Open nadjibnet opened 6 years ago

nadjibnet commented 6 years ago

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 commented 6 years ago

commit proposed.