Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MQTTPacket
liveobjects_dev_params.h@8:82317399e4ce, 2017-04-04 (annotated)
- Committer:
- jhamel
- Date:
- Tue Apr 04 16:17:23 2017 +0200
- Revision:
- 8:82317399e4ce
- Parent:
- 7:4a00359262cb
Use CA from Symantec/VeriSign, and fix TLS issue
Who changed what in which revision?
| User | Revision | Line number | New 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 | 8:82317399e4ce | 22 | #define SECURITY_ENABLED 1 |
| jhamel | 0:92f8cff1cf35 | 23 | |
| jhamel | 0:92f8cff1cf35 | 24 | // Only used to overwrite the LiveOjects Server settings : |
| jhamel | 0:92f8cff1cf35 | 25 | // IP address, TCP port, Connection timeout in milliseconds. |
| jhamel | 0:92f8cff1cf35 | 26 | //#define LOC_SERV_IP_ADDRESS "XXXX" |
| jhamel | 0:92f8cff1cf35 | 27 | //#define LOC_SERV_PORT XXXX |
| jhamel | 0:92f8cff1cf35 | 28 | //#define LOC_SERV_TIMEOUT XXXX |
| jhamel | 0:92f8cff1cf35 | 29 | |
| jhamel | 1:be3595460c56 | 30 | // Issue with DNS to resolve FQDN liveobjects.orange-business.com ? |
| jhamel | 3:a348ae67024e | 31 | //#define LOC_SERV_IP_ADDRESS "84.39.42.214" |
| jhamel | 4:919c25da5ec8 | 32 | //#define LOC_SERV_IP_ADDRESS "84.39.42.208" |
| jhamel | 1:be3595460c56 | 33 | |
| jhamel | 0:92f8cff1cf35 | 34 | // When set to 1, use the MAC address as LiveObject device identifier |
| jhamel | 0:92f8cff1cf35 | 35 | // otherwise use LOC_CLIENT_DEV_ID |
| jhamel | 3:a348ae67024e | 36 | #define LOC_CLIENT_USE_MAC_ADDR 1 |
| jhamel | 0:92f8cff1cf35 | 37 | |
| jhamel | 0:92f8cff1cf35 | 38 | // Default LiveObjects device settings : name space and device identifier |
| jhamel | 4:919c25da5ec8 | 39 | #define LOC_CLIENT_DEV_NAME_SPACE "LO_sample" |
| jhamel | 0:92f8cff1cf35 | 40 | #if !LOC_CLIENT_USE_MAC_ADDR |
| jhamel | 0:92f8cff1cf35 | 41 | #define LOC_CLIENT_DEV_ID "LO_sample_dev01" |
| jhamel | 0:92f8cff1cf35 | 42 | #endif |
| jhamel | 0:92f8cff1cf35 | 43 | |
| jhamel | 0:92f8cff1cf35 | 44 | // Here, set your LiveObject Apikey. It is mandatory to run the application |
| jhamel | 8:82317399e4ce | 45 | #define LOC_CLIENT_DEV_API_KEY "XXXX" |
| jhamel | 0:92f8cff1cf35 | 46 | |
| jhamel | 0:92f8cff1cf35 | 47 | |
| jhamel | 0:92f8cff1cf35 | 48 | #if SECURITY_ENABLED |
| jhamel | 0:92f8cff1cf35 | 49 | // If security is enabled to establish connection to the LiveObjects platform, |
| jhamel | 0:92f8cff1cf35 | 50 | // include certificates file |
| jhamel | 0:92f8cff1cf35 | 51 | #include "liveobjects_dev_security.h" |
| jhamel | 0:92f8cff1cf35 | 52 | #endif |
| jhamel | 0:92f8cff1cf35 | 53 | |
| jhamel | 0:92f8cff1cf35 | 54 | #endif //__liveobjects_dev_params_H_ |