diff --git a/examples/LedHandler/LedHandler.ino b/examples/LedHandler/LedHandler.ino index 6d26ffc..54ff71d 100644 --- a/examples/LedHandler/LedHandler.ino +++ b/examples/LedHandler/LedHandler.ino @@ -9,9 +9,11 @@ void setup() pinMode(pinLED, OUTPUT); /* Configure the onboard LED as output */ digitalWrite(pinLED, LOW); /* Default LED OFF */ - /* Setup SerialCommand port */ + /* Setup Serial port */ Serial.begin(9600); - + + /* Setup SerialCommand class */ + mySerialCMD.begin(Serial); /* * Setup callbacks for SerialCommand commands: * PING -> Execute handler diff --git a/examples/ReadWriteExecute/ReadWriteExecute.ino b/examples/ReadWriteExecute/ReadWriteExecute.ino index b7e6410..0204c32 100644 --- a/examples/ReadWriteExecute/ReadWriteExecute.ino +++ b/examples/ReadWriteExecute/ReadWriteExecute.ino @@ -4,8 +4,11 @@ SerialCommand mySerialCMD; void setup() { - /* Setup SerialCommand port */ + /* Setup Serial port */ Serial.begin(9600); + + /* Setup SerialCommand class */ + mySerialCMD.begin(Serial); /* * Setup callbacks for SerialCommand commands diff --git a/examples/ping/ping.ino b/examples/ping/ping.ino index 40e9d4c..48142e8 100644 --- a/examples/ping/ping.ino +++ b/examples/ping/ping.ino @@ -4,8 +4,11 @@ SerialCommand mySerialCMD; void setup() { - /* Setup SerialCommand port */ + /* Setup Serial port */ Serial.begin(9600); + + /* Setup SerialCommand class */ + mySerialCMD.begin(Serial); /* Setup callbacks for SerialCommand commands */ mySerialCMD.addExecuteCommand((char*)"AT", ping);