Orange_IoT / Mbed OS liveobjects-iotsoftbox-basic

Dependencies:   MQTTPacket

Committer:
jhamel
Date:
Tue Apr 04 14:35:41 2017 +0200
Revision:
6:0321cf97d047
Parent:
5:ad1444df2679
Child:
7:4a00359262cb
By defaut disable TLS feature.
Temporarily, it does not work with the liveobjects platform.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jhamel 0:92f8cff1cf35 1 /*
jhamel 0:92f8cff1cf35 2 * Copyright (C) 2016 Orange
jhamel 0:92f8cff1cf35 3 *
jhamel 0:92f8cff1cf35 4 * This software is distributed under the terms and conditions of the 'BSD-3-Clause'
jhamel 0:92f8cff1cf35 5 * license which can be found in the file 'LICENSE.txt' in this package distribution
jhamel 0:92f8cff1cf35 6 * or at 'https://opensource.org/licenses/BSD-3-Clause'.
jhamel 0:92f8cff1cf35 7 *
jhamel 0:92f8cff1cf35 8 * This file is a part of LiveObjects iotsoftbox-mqtt library.
jhamel 0:92f8cff1cf35 9 */
jhamel 0:92f8cff1cf35 10
jhamel 0:92f8cff1cf35 11 /**
jhamel 0:92f8cff1cf35 12 * @file liveobjects_dev_params.h
jhamel 0:92f8cff1cf35 13 * @brief Default user parameters used to configure this device as a Live Objects Device
jhamel 0:92f8cff1cf35 14 */
jhamel 0:92f8cff1cf35 15
jhamel 0:92f8cff1cf35 16
jhamel 0:92f8cff1cf35 17 #ifndef __liveobjects_dev_params_H_
jhamel 0:92f8cff1cf35 18 #define __liveobjects_dev_params_H_
jhamel 0:92f8cff1cf35 19
jhamel 0:92f8cff1cf35 20 // Set to 1 to enable TLS feature
jhamel 0:92f8cff1cf35 21 // (warning: check that LOC_SERV_PORT is the correct port in this case)
jhamel 6:0321cf97d047 22 // WARNING: by defaut disable TLS, it does not work today with the liveobjects platform
jhamel 6:0321cf97d047 23 #define SECURITY_ENABLED 0
jhamel 0:92f8cff1cf35 24
jhamel 0:92f8cff1cf35 25 // Only used to overwrite the LiveOjects Server settings :
jhamel 0:92f8cff1cf35 26 // IP address, TCP port, Connection timeout in milliseconds.
jhamel 0:92f8cff1cf35 27 //#define LOC_SERV_IP_ADDRESS "XXXX"
jhamel 0:92f8cff1cf35 28 //#define LOC_SERV_PORT XXXX
jhamel 0:92f8cff1cf35 29 //#define LOC_SERV_TIMEOUT XXXX
jhamel 0:92f8cff1cf35 30
jhamel 1:be3595460c56 31 // Issue with DNS to resolve FQDN liveobjects.orange-business.com ?
jhamel 3:a348ae67024e 32 //#define LOC_SERV_IP_ADDRESS "84.39.42.214"
jhamel 4:919c25da5ec8 33 //#define LOC_SERV_IP_ADDRESS "84.39.42.208"
jhamel 1:be3595460c56 34
jhamel 0:92f8cff1cf35 35 // When set to 1, use the MAC address as LiveObject device identifier
jhamel 0:92f8cff1cf35 36 // otherwise use LOC_CLIENT_DEV_ID
jhamel 3:a348ae67024e 37 #define LOC_CLIENT_USE_MAC_ADDR 1
jhamel 0:92f8cff1cf35 38
jhamel 0:92f8cff1cf35 39 // Default LiveObjects device settings : name space and device identifier
jhamel 4:919c25da5ec8 40 #define LOC_CLIENT_DEV_NAME_SPACE "LO_sample"
jhamel 0:92f8cff1cf35 41 #if !LOC_CLIENT_USE_MAC_ADDR
jhamel 0:92f8cff1cf35 42 #define LOC_CLIENT_DEV_ID "LO_sample_dev01"
jhamel 0:92f8cff1cf35 43 #endif
jhamel 0:92f8cff1cf35 44
jhamel 0:92f8cff1cf35 45 // Here, set your LiveObject Apikey. It is mandatory to run the application
jhamel 6:0321cf97d047 46 #define LOC_CLIENT_DEV_API_KEY "aad4d419246f4263803b6d44d3e549a5"
jhamel 0:92f8cff1cf35 47
jhamel 0:92f8cff1cf35 48
jhamel 0:92f8cff1cf35 49 #if SECURITY_ENABLED
jhamel 0:92f8cff1cf35 50 // If security is enabled to establish connection to the LiveObjects platform,
jhamel 0:92f8cff1cf35 51 // include certificates file
jhamel 0:92f8cff1cf35 52 #include "liveobjects_dev_security.h"
jhamel 0:92f8cff1cf35 53 #endif
jhamel 0:92f8cff1cf35 54
jhamel 0:92f8cff1cf35 55 #endif //__liveobjects_dev_params_H_