|
8 | 8 | // 0 - BME280 sensor is not present |
9 | 9 | // 1 - BME280 sensor is present |
10 | 10 | // ---------------------------------------------------------------------------- |
11 | | -#define __SENSOR_BME280__ 0 |
| 11 | +#define __SENSOR_BME280__ 1 |
12 | 12 |
|
13 | 13 | // ---------------------------------------------------------------------------- |
14 | 14 | // Azure IoT Hub Connection Transport |
|
20 | 20 | // Azure IoT Dynamic Provisioning Service |
21 | 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 | 26 | // Azure IoT DPS Self-Signed X509Certificate |
27 | | -// Define this to connect to DPS or Iot Hub using a self-signed X509 |
28 | | -/// certificate |
| 27 | +// Define this to connect to DPS or Iot Hub using a X509 certificate |
29 | 28 | // ---------------------------------------------------------------------------- |
30 | 29 | // #define ENABLE_X509 |
31 | 30 |
|
32 | 31 | // ---------------------------------------------------------------------------- |
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 |
| 32 | +// Azure IoT Hub connection config |
| 33 | +// IOT_HUB_HOSTNAME: The Azure IoT Hub hostname |
| 34 | +// IOT_HUB_DEVICE_ID: The Azure IoT Hub device id |
36 | 35 | // ---------------------------------------------------------------------------- |
37 | | -#define IOT_DEVICE_ID "" |
| 36 | +#define IOT_HUB_HOSTNAME "" |
| 37 | +#define IOT_HUB_DEVICE_ID "" |
38 | 38 |
|
39 | 39 | // ---------------------------------------------------------------------------- |
40 | | -// Azure IoT SAS Key |
41 | | -// The SAS key generated by configuring an IoT Hub device or DPS individual |
42 | | -// enrollment |
43 | | -// NOTE: To be used only when ENABLE_X509 is not defined |
44 | | -// ---------------------------------------------------------------------------- |
45 | | -#define IOT_PRIMARY_KEY "" |
46 | | - |
47 | | -// ---------------------------------------------------------------------------- |
48 | | -// Azure IoT Hub Hostname |
49 | | -// The Hostname found on your IoT Hub Overview page |
50 | | -// NOTE: To be used only when ENABLE_DPS is not defined |
| 40 | +// Azure IoT DPS connection config |
| 41 | +// IOT_DPS_ID_SCOPE: The DPS ID Scope |
| 42 | +// IOT_DPS_REGISTRATION_ID: The DPS device Registration Id |
51 | 43 | // ---------------------------------------------------------------------------- |
52 | | -#define IOT_HUB_HOSTNAME "" |
| 44 | +#define IOT_DPS_ID_SCOPE "" |
| 45 | +#define IOT_DPS_REGISTRATION_ID "" |
53 | 46 |
|
54 | 47 | // ---------------------------------------------------------------------------- |
55 | | -// Azure IoT DPS config |
56 | | -// DPS connection information |
57 | | -// IOT_DPS_ENDPOINT is always "global.azure-devices-provisioning.net" |
58 | | -// IOT_DPS_ID_SCOPE can be found on your DPS Overview page |
59 | | -// IOT_DPS_REGISTRATION ID is the title of your individual enrollment |
60 | | -// containing your SAS key or X509 certificate |
| 48 | +// Azure IoT device SAS key |
| 49 | +// The SAS key generated by configuring an IoT Hub device or DPS individual |
| 50 | +// enrollment |
61 | 51 | // ---------------------------------------------------------------------------- |
62 | | -#define IOT_DPS_ENDPOINT "global.azure-devices-provisioning.net" |
63 | | -#define IOT_DPS_ID_SCOPE "" |
64 | | -#define IOT_DPS_REGISTRATION_ID "" |
| 52 | +#define IOT_DEVICE_SAS_KEY "" |
65 | 53 |
|
66 | 54 | #endif // _AZURE_CONFIG_H |
0 commit comments