Can i disconnect the hwSerial port from MIDI.h after begin() ?

The question is fairly simple.

I want to disconnect the processing of the incoming & outgoing data on the UART from the MIDI object.

quite simply said, outgoing should not be an issue, i can simply send data to the UART, but anything that comes in is processed and the UART rx-buffer is emptied, and if the incoming data is not Midi, i can not get access to it.

As usual a need, needs some explanation. I am transferring Midi thru 2 HC-05 BT modules, but i want the controlling MCU also to be able to access the AT-commands. Switch the enable pin (no prob) and give it a power cycle (also no prob) , send the command, but whatever comes back will be processed as midi, and that i don't want.

Any ideas ?

Ok sorry for starting this, After going through Midi.h & .hpp i found that the UART rx buffer isn't accessed by the midi object until read() is called, and so i actually have access to the Serial port normally.
Tested it to confirm ! Thanks anyway for to people read this and thought about it for a moment.
All you telepaths out there i would not know what i would do without you !

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.