Had to fork with a different name, because of some incompatibility issues.
Diff: DeviceClient.h
- Revision:
- 2:199ddea804cd
- Parent:
- 0:f86732d81998
- Child:
- 3:3d91bf839b49
diff -r f86732d81998 -r 199ddea804cd DeviceClient.h --- a/DeviceClient.h Fri Nov 06 07:09:14 2015 +0000 +++ b/DeviceClient.h Fri Nov 06 14:56:34 2015 +0000 @@ -1,4 +1,21 @@ -#ifndef DeviceClient_H +/******************************************************************************* + * Copyright (c) 2015 IBM Corp. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * and Eclipse Distribution License v1.0 which accompany this distribution. + * + * The Eclipse Public License is available at + * http://www.eclipse.org/legal/epl-v10.html + * and the Eclipse Distribution License is available at + * http://www.eclipse.org/org/documents/edl-v10.php. + * + * Contributors: + * Sathisumar Palaniappan - initial implementation + * + *******************************************************************************/ + + #ifndef DeviceClient_H #define DeviceClient_H #include "MQTTEthernet.h" @@ -38,6 +55,7 @@ int getConnTimeout(int attemptNumber); void logData(EthernetInterface& eth, char *hostname, char *clientId); int subscribeToCommands(); + char* getMac(char* buf, int buflen); public: DeviceClient(); @@ -45,7 +63,7 @@ DeviceClient(char *org, char *deviceType, char *deviceId, char *authMethod, char *authToken); bool publishEvent(char *eventName, char *data, MQTT::QoS qos = MQTT::QOS0); void setCommandCallback(CommandHandler callbackFunc); - char* getMac(char* buf, int buflen); + char* getDeviceId(char* buf, int buflen); void yield(int ms); bool connect(); bool disconnect();