MCPcopy Create free account
hub / github.com/SmingHub/Sming / receiveRF

Function receiveRF

samples/Radio_RCSwitch/app/application.cpp:18–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18void 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

Callers

nothing calls this directly

Calls 6

getReceivedValueMethod · 0.80
printlnMethod · 0.80
getReceivedBitlengthMethod · 0.80
getReceivedProtocolMethod · 0.80
resetAvailableMethod · 0.80
availableMethod · 0.45

Tested by

no test coverage detected