Had to fork with a different name, because of some incompatibility issues.

Dependencies:   MQTT

Committer:
lamell
Date:
Mon Sep 14 18:32:15 2020 -0400
Revision:
29:40cc05c6c14b
Parent:
4:7be77f2f6a71
No changes

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sathipal 2:199ddea804cd 1 /*******************************************************************************
sathipal 2:199ddea804cd 2 * Copyright (c) 2015 IBM Corp.
sathipal 2:199ddea804cd 3 *
sathipal 2:199ddea804cd 4 * All rights reserved. This program and the accompanying materials
sathipal 2:199ddea804cd 5 * are made available under the terms of the Eclipse Public License v1.0
sathipal 2:199ddea804cd 6 * and Eclipse Distribution License v1.0 which accompany this distribution.
sathipal 2:199ddea804cd 7 *
sathipal 2:199ddea804cd 8 * The Eclipse Public License is available at
sathipal 2:199ddea804cd 9 * http://www.eclipse.org/legal/epl-v10.html
sathipal 2:199ddea804cd 10 * and the Eclipse Distribution License is available at
sathipal 2:199ddea804cd 11 * http://www.eclipse.org/org/documents/edl-v10.php.
sathipal 2:199ddea804cd 12 *
sathipal 2:199ddea804cd 13 * Contributors:
sathipal 2:199ddea804cd 14 * Sathisumar Palaniappan - initial implementation
sathipal 2:199ddea804cd 15 *******************************************************************************/
sathipal 3:3d91bf839b49 16 #include "Command.h"
sathipal 0:f86732d81998 17
sathipal 0:f86732d81998 18 using namespace IoTF;
sathipal 2:199ddea804cd 19 Command::Command(char* cmd, char* fmt, char *pload):command(cmd),format(fmt),payload(pload)
sathipal 2:199ddea804cd 20 {
sathipal 2:199ddea804cd 21
sathipal 0:f86732d81998 22 }
sathipal 0:f86732d81998 23
sathipal 2:199ddea804cd 24 char* Command::getPayload()
sathipal 2:199ddea804cd 25 {
sathipal 0:f86732d81998 26 return payload;
sathipal 0:f86732d81998 27 }
sathipal 0:f86732d81998 28
sathipal 2:199ddea804cd 29 char* Command::getCommand()
sathipal 2:199ddea804cd 30 {
sathipal 0:f86732d81998 31 return command;
sathipal 0:f86732d81998 32 }
sathipal 0:f86732d81998 33
sathipal 2:199ddea804cd 34 char* Command::getFormat()
sathipal 2:199ddea804cd 35 {
sathipal 0:f86732d81998 36 return format;
sathipal 0:f86732d81998 37 }
sathipal 0:f86732d81998 38