Skip to content

DPS MQTT support #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Sep 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
c242ef9
prevacation commit
ryanwinter Jul 10, 2020
127a6dc
Merge branch 'master' of github.com:azurertos/getting-started into us…
ryanwinter Jul 27, 2020
2be1fd5
Merge branch 'master' of github.com:azurertos/getting-started into us…
ryanwinter Aug 27, 2020
78f1de5
reuse hub's mqtt struct
ryanwinter Aug 27, 2020
a9a1b87
send initial DPS message, parse first response
ryanwinter Aug 27, 2020
c832c2a
add tx_event_flags to track dps repsonses
ryanwinter Aug 27, 2020
2a6a100
Merge branch 'master' of github.com:azurertos/getting-started into us…
ryanwinter Aug 27, 2020
dbc8b01
update threadx + netxduo
ryanwinter Aug 28, 2020
c3bfd19
update
ryanwinter Aug 28, 2020
6c29ab6
roll back netx/threadx
ryanwinter Aug 28, 2020
1bbcec3
update sas token generation for DPS
ryanwinter Aug 28, 2020
7c23885
fix dps msg
ryanwinter Aug 29, 2020
f11200d
DPS for MQTT
ryanwinter Aug 31, 2020
8ccf278
initial working DPS, needs refactor
ryanwinter Sep 1, 2020
04f1915
DPS complete for NXP
ryanwinter Sep 1, 2020
e4e3989
improved DPS error handling
ryanwinter Sep 1, 2020
4ed0e32
memory optimisation and added STM32 support for DPS
ryanwinter Sep 1, 2020
bd7e32d
set 30 second timeout on DPS registration
ryanwinter Sep 1, 2020
5fde6c7
DPS for mxchip
ryanwinter Sep 1, 2020
c9825c4
DPS for microchip
ryanwinter Sep 2, 2020
64ad0d2
DPS update to azure_config.h
ryanwinter Sep 2, 2020
267bfb4
add DTDL v1 model, removed unsed DPS code
ryanwinter Sep 4, 2020
c39cff4
add units to dtdl property
ryanwinter Sep 4, 2020
3c6ce7e
Merge branch 'master' of github.com:azurertos/getting-started into us…
ryanwinter Sep 6, 2020
842cb2c
mxchip dps fix
ryanwinter Sep 7, 2020
e493dc9
sanitize azure_config
ryanwinter Sep 7, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions MXChip/AZ3166/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ set(SOURCES

stm32cubef4/stm32f4xx_hal_msp.c

azure_config.h
nx_client.c
mqtt.c
board_init.c
Expand Down
33 changes: 22 additions & 11 deletions MXChip/AZ3166/app/azure_config.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Copyright (c) Microsoft Corporation.
Licensed under the MIT License. */

#ifndef _AZURE_CONFIG_H
#define _AZURE_CONFIG_H

Expand All @@ -15,23 +15,34 @@ typedef enum
// ----------------------------------------------------------------------------
// WiFi connection information
// ----------------------------------------------------------------------------
#define WIFI_SSID ""
#define WIFI_PASSWORD ""

// WIFI Security as defined in lib/wiced_sdk/43xxx_Wi-Fi/wwd_constants.h
#define WIFI_SECURITY WPA2_PSK_AES
#define WIFI_SSID ""
#define WIFI_PASSWORD ""
#define WIFI_MODE WPA2_PSK_AES

// ----------------------------------------------------------------------------
// Azure IoT Hub Connection Transport
// Define this to use the nx client, otherwise MQTT
// ----------------------------------------------------------------------------
// #define USE_NX_CLIENT_PREVIEW
//#define USE_NX_CLIENT_PREVIEW

// ----------------------------------------------------------------------------
// Azure IoT Dynamic Provisioning Service
// Define this to use the DPS service, otherwise direct IoT Hub
// ----------------------------------------------------------------------------
//#define ENABLE_DPS

// ----------------------------------------------------------------------------
// Azure IoT Hub config
// ----------------------------------------------------------------------------
#define IOT_HUB_HOSTNAME ""
#define IOT_DEVICE_ID ""
#define IOT_PRIMARY_KEY ""

// ----------------------------------------------------------------------------
// Azure IoT Device information
// Azure IoT DPS config
// ----------------------------------------------------------------------------
#define IOT_HUB_HOSTNAME ""
#define IOT_DEVICE_ID ""
#define IOT_PRIMARY_KEY ""
#define IOT_DPS_ENDPOINT "global.azure-devices-provisioning.net"
#define IOT_DPS_ID_SCOPE ""
#define IOT_DPS_REGISTRATION_ID ""

#endif // _AZURE_CONFIG_H
Loading