Datavenue Live Objects basic sample using liveobjects-iotsoftbox-mqtt library.
Dependencies: MQTTPacket
Diff: liveobjects_dev_params.h.txt
- Revision:
- 0:92f8cff1cf35
- Child:
- 4:919c25da5ec8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/liveobjects_dev_params.h.txt Fri Nov 25 16:12:09 2016 +0100 @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2016 Orange + * + * This software is distributed under the terms and conditions of the 'BSD-3-Clause' + * license which can be found in the file 'LICENSE.txt' in this package distribution + * or at 'https://opensource.org/licenses/BSD-3-Clause'. + * + * This file is a part of LiveObjects iotsoftbox-mqtt library. + */ + +/** + * @file liveobjects_dev_params.h + * @brief Default user parameters used to configure this device as a Live Objects Device + */ + + +#ifndef __liveobjects_dev_params_H_ +#define __liveobjects_dev_params_H_ + +// Set to 1 to enable TLS feature +// (warning: check that LOC_SERV_PORT is the correct port in this case) +#define SECURITY_ENABLED 1 + +// Only used to overwrite the LiveOjects Server settings : +// IP address, TCP port, Connection timeout in milliseconds. +//#define LOC_SERV_IP_ADDRESS "XXXX" +//#define LOC_SERV_PORT XXXX +//#define LOC_SERV_TIMEOUT XXXX + +// When set to 1, use the MAC address as LiveObject device identifier +// otherwise use LOC_CLIENT_DEV_ID +#define LOC_CLIENT_USE_MAC_ADDR 0 + +// Default LiveObjects device settings : name space and device identifier +#define LOC_CLIENT_DEV_NAME_SPACE "LiveObjectsSample" +#if !LOC_CLIENT_USE_MAC_ADDR +#define LOC_CLIENT_DEV_ID "LO_sample_dev01" +#endif + +// Here, set your LiveObject Apikey. It is mandatory to run the application +#define LOC_CLIENT_DEV_API_KEY "XXXX" + + +#if SECURITY_ENABLED +// If security is enabled to establish connection to the LiveObjects platform, +// include certificates file +#include "liveobjects_dev_security.h" +#endif + +#endif //__liveobjects_dev_params_H_