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

Method begin

samples/Basic_Serial/app/SerialReadingDelegateDemo.cpp:19–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19void SerialReadingDelegateDemo::begin(HardwareSerial& serial)
20{
21 this->serial = &serial;
22 serial.onDataReceived(StreamDataReceivedDelegate(&SerialReadingDelegateDemo::onData, this));
23 debugf("hwsDelegateDemo instantiated, waiting for data");
24}
25
26void SerialReadingDelegateDemo::onData(Stream& stream, char arrivedChar, unsigned short availableCharsCount)
27{

Callers 15

makeSsidStringFunction · 0.45
initFunction · 0.45
checkReadyFunction · 0.45
initFunction · 0.45
initFunction · 0.45
doUpgradeFunction · 0.45
initFunction · 0.45
initFunction · 0.45
initFunction · 0.45
initFunction · 0.45
initFunction · 0.45
initFunction · 0.45

Calls 1

onDataReceivedMethod · 0.80

Tested by

no test coverage detected