You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking for a way to use the onReceive() callbacks for up to three instances of a class, that each have a dedicated HardwareSerial attached to it.
onReceive() will only accept a static class member function, so it will be identical for all instances. I need to know whichHardwareSerial called the callback to have the proper instance react accordingly.
Is there a way identifying the calling HardwareSerial while in the callback function? Or, alternatively, get notice about FIFO buffer full or FIFO timeout without the callbacks?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am looking for a way to use the
onReceive()
callbacks for up to three instances of a class, that each have a dedicatedHardwareSerial
attached to it.onReceive()
will only accept a static class member function, so it will be identical for all instances. I need to know whichHardwareSerial
called the callback to have the proper instance react accordingly.Is there a way identifying the calling
HardwareSerial
while in the callback function? Or, alternatively, get notice about FIFO buffer full or FIFO timeout without the callbacks?Beta Was this translation helpful? Give feedback.
All reactions