sui77 / rc-switch

Arduino lib to operate 433/315Mhz devices like power outlet sockets.
1.92k stars 663 forks source link

Throw an exception in mySwitch.send #450

Open joroMaser opened 2 years ago

joroMaser commented 2 years ago

How to get an information if mySwitch.send(5393, 24);

Was failed? Maybe the pin is disconnected or user didn't enableTransmit first.

I think it's better to add exceptions of return error