|
8 | 8 | // 0 - BME280 sensor is not present |
9 | 9 | // 1 - BME280 sensor is present |
10 | 10 | // ---------------------------------------------------------------------------- |
11 | | -#define __SENSOR_BME280__ 1 |
| 11 | +#define __SENSOR_BME280__ 0 |
12 | 12 |
|
13 | 13 | // ---------------------------------------------------------------------------- |
14 | 14 | // Azure IoT Hub Connection Transport |
15 | | -// Define to use the legacy MQTT connection, else Azure RTOS SDK for Azure IoT |
| 15 | +// Define to use the legacy MQTT connection, else Azure RTOS SDK for Azure IoT |
16 | 16 | // ---------------------------------------------------------------------------- |
17 | 17 | //#define ENABLE_LEGACY_MQTT |
18 | 18 |
|
19 | 19 | // ---------------------------------------------------------------------------- |
20 | 20 | // Azure IoT Dynamic Provisioning Service |
21 | | -// Define this to use the DPS service, otherwise direct IoT Hub |
| 21 | +// Define this to use the DPS service, otherwise direct IoT Hub |
22 | 22 | // ---------------------------------------------------------------------------- |
23 | | -//#define ENABLE_DPS |
| 23 | +// #define ENABLE_DPS |
24 | 24 |
|
25 | 25 | // ---------------------------------------------------------------------------- |
26 | | -// Azure IoT Hub config |
| 26 | +// Azure IoT DPS Self-Signed X509Certificate |
| 27 | +// Define this to connect to DPS or Iot Hub using a self-signed X509 |
| 28 | +/// certificate |
| 29 | +// ---------------------------------------------------------------------------- |
| 30 | +// #define ENABLE_X509 |
| 31 | + |
| 32 | +// ---------------------------------------------------------------------------- |
| 33 | +// Azure IoT Device ID |
| 34 | +// Make sure this is the same as the Device ID on the corresponding IoT Hub |
| 35 | +// NOTE: To be used only when ENABLE_DPS is NOT defined |
27 | 36 | // ---------------------------------------------------------------------------- |
28 | | -#define IOT_HUB_HOSTNAME "" |
29 | 37 | #define IOT_DEVICE_ID "" |
| 38 | + |
| 39 | +#ifndef ENABLE_X509 |
| 40 | +// ---------------------------------------------------------------------------- |
| 41 | +// Azure IoT SAS Key |
| 42 | +// The SAS key generated by configuring an IoT Hub device or DPS individual |
| 43 | +// enrollment |
| 44 | +// NOTE: To be used only when ENABLE_X509 is not defined |
| 45 | +// ---------------------------------------------------------------------------- |
30 | 46 | #define IOT_PRIMARY_KEY "" |
| 47 | +#endif |
| 48 | + |
| 49 | +#ifndef ENABLE_DPS |
| 50 | +// ---------------------------------------------------------------------------- |
| 51 | +// Azure IoT Hub Hostname |
| 52 | +// The Hostname found on your IoT Hub Overview page |
| 53 | +// NOTE: To be used only when ENABLE_DPS is not defined |
| 54 | +// ---------------------------------------------------------------------------- |
| 55 | +#define IOT_HUB_HOSTNAME "" |
31 | 56 |
|
| 57 | +#else |
32 | 58 | // ---------------------------------------------------------------------------- |
33 | 59 | // Azure IoT DPS config |
| 60 | +// DPS connection information |
| 61 | +// IOT_DPS_ENDPOINT is always "global.azure-devices-provisioning.net" |
| 62 | +// IOT_DPS_ID_SCOPE can be found on your DPS Overview page |
| 63 | +// IOT_DPS_REGISTRATION ID is the title of your individual enrollment |
| 64 | +// containing your SAS key or X509 certificate |
34 | 65 | // ---------------------------------------------------------------------------- |
35 | 66 | #define IOT_DPS_ENDPOINT "global.azure-devices-provisioning.net" |
36 | 67 | #define IOT_DPS_ID_SCOPE "" |
37 | 68 | #define IOT_DPS_REGISTRATION_ID "" |
| 69 | +#endif |
38 | 70 |
|
39 | 71 | #endif // _AZURE_CONFIG_H |
0 commit comments