| 16 | } |
| 17 | |
| 18 | void receiveRF() |
| 19 | { |
| 20 | if(mySwitch.available() == 0) { |
| 21 | return; |
| 22 | } |
| 23 | |
| 24 | if(mySwitch.getReceivedValue() == 0) { |
| 25 | Serial.println(_F("Unknown encoding")); |
| 26 | } else { |
| 27 | Serial << _F("Received ") << mySwitch.getReceivedValue() << " / " << mySwitch.getReceivedBitlength() |
| 28 | << " bit, Protocol: " << mySwitch.getReceivedProtocol() << endl; |
| 29 | } |
| 30 | |
| 31 | mySwitch.resetAvailable(); |
| 32 | } |
| 33 | |
| 34 | } // namespace |
| 35 |
nothing calls this directly
no test coverage detected