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

Dependencies:   MQTT

Committer:
sathipal
Date:
Fri Nov 06 14:56:34 2015 +0000
Revision:
2:199ddea804cd
Parent:
0:f86732d81998
Child:
3:3d91bf839b49
A library that simplifies interactions with IBM Internet of Things Foundation.

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 2:199ddea804cd 16 #include "Command.h"
sathipal 0:f86732d81998 17
sathipal 0:f86732d81998 18 using namespace IoTF;
sathipal 0:f86732d81998 19
sathipal 2:199ddea804cd 20 Command::Command(char* cmd, char* fmt, char *pload):command(cmd),format(fmt),payload(pload)
sathipal 2:199ddea804cd 21 {
sathipal 2:199ddea804cd 22
sathipal 0:f86732d81998 23 }
sathipal 0:f86732d81998 24
sathipal 2:199ddea804cd 25 char* Command::getPayload()
sathipal 2:199ddea804cd 26 {
sathipal 0:f86732d81998 27 return payload;
sathipal 0:f86732d81998 28 }
sathipal 0:f86732d81998 29
sathipal 2:199ddea804cd 30 char* Command::getCommand()
sathipal 2:199ddea804cd 31 {
sathipal 0:f86732d81998 32 return command;
sathipal 0:f86732d81998 33 }
sathipal 0:f86732d81998 34
sathipal 2:199ddea804cd 35 char* Command::getFormat()
sathipal 2:199ddea804cd 36 {
sathipal 0:f86732d81998 37 return format;
sathipal 0:f86732d81998 38 }
sathipal 0:f86732d81998 39