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

Dependencies:   MQTT

Committer:
sathipal
Date:
Fri Nov 06 07:09:14 2015 +0000
Revision:
0:f86732d81998
Child:
2:199ddea804cd
A library to simplify interactions with the IBM Internet of Things Foundation

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sathipal 0:f86732d81998 1 #include "Command.h"
sathipal 0:f86732d81998 2
sathipal 0:f86732d81998 3 using namespace IoTF;
sathipal 0:f86732d81998 4
sathipal 0:f86732d81998 5 Command::Command(char* command, char* format, char *payload) {
sathipal 0:f86732d81998 6 this->command = command;
sathipal 0:f86732d81998 7 this->format = format;
sathipal 0:f86732d81998 8 this->payload = payload;
sathipal 0:f86732d81998 9 }
sathipal 0:f86732d81998 10
sathipal 0:f86732d81998 11 char* Command::getPayload() {
sathipal 0:f86732d81998 12 return payload;
sathipal 0:f86732d81998 13 }
sathipal 0:f86732d81998 14
sathipal 0:f86732d81998 15 char* Command::getCommand() {
sathipal 0:f86732d81998 16 return command;
sathipal 0:f86732d81998 17 }
sathipal 0:f86732d81998 18
sathipal 0:f86732d81998 19 char* Command::getFormat() {
sathipal 0:f86732d81998 20 return format;
sathipal 0:f86732d81998 21 }
sathipal 0:f86732d81998 22