element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Monarch Go
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Monarch Go
  • More
  • Cancel
Monarch Go
Forum Azure OOB demo connection issue.
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Monarch Go to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 7 replies
  • Answers 1 answer
  • Subscribers 9 subscribers
  • Views 2297 views
  • Users 0 members are here
  • monarchgo
Related

Azure OOB demo connection issue.

skruglewicz
skruglewicz over 4 years ago

Hello,

I had the demo working once with your Monarch free trial template.

I set it up from the helpful Workshop#2 video's and docs.

 

When the 7 day trial was up I created a new Monarch template on a new free trial version. I configured the MCU Project with the Device info as before.

 

But now when I debug the app,  it is doing some communication but the results are not showing up on the IotCentral dashboard.?

where is the data going?

DO I have to use a different MQTT broker?

I'm at a lost here?

 

Thanks in advance

Steve K

  • Sign in to reply
  • Cancel

Top Replies

  • jafoste4
    jafoste4 over 4 years ago in reply to skruglewicz +1 suggested
    Hi Steve, Can you email this entire log? (you emailed me previously). In the first log you showed its acting as if there isn't a network connection. Are you able to try it in a different location perhaps…
Parents
  • skruglewicz
    0 skruglewicz over 4 years ago

    Hi jafoste4  #jafoste4

     

    Any thoughts on this?

     

    SteveK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jafoste4
    0 jafoste4 over 4 years ago in reply to skruglewicz

    Hi Steve,

     

    The things that can change when you create a new templace instance are the device info and primary key information.

     

    I'd probably start my debug by verifying the following files within your IDE are configured correctly for the new template/device.

     

    msft_Azure_IoT_cientcredential.h

    msft_Azure_IoT_cientcredential_keys.h

     

    If those are configured correctly please let me know and I can help further.

     

    -Josh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • skruglewicz
    0 skruglewicz over 4 years ago in reply to jafoste4

    I'll check again, but I believe I followed your directions in your workshop part2?

     

    On Iot Central I opened my device which I created on my 2nd free 7 day template. I Opened the "Connect" dialog  and using the information to fill in the following info in the code

     

    1) In your MCU application, navigate to msft_Azure_IoT\demo section

    then open :

    msft_Azure_IoT_clientcredential.h

     

     

    Copy the Scope ID (ID Scope) and Device ID values to the header file

         #define clientcredentialAZURE_IOT_SCOPE_ID ""

         #define clientcredentialAZURE_IOT_DEVICE_ID ""

     

     

    Edit line #22, adding the Azure DPS provisioning service as the MQTT Broker Endpoint

    "global.azure-devices-provisioning.net"

     

    2) This application also includes some code to support the simpler Shared Access Signature (SAS) authentication. This requires SAS Primary Key for connecting your real device also needs to be added. While still in this Device      Connection window, click on Shared Access Signature (SAS) then copy to the clipboard the Primary key that is displayed…

     

     

    Back in MCUXpresso, under the msft_Azure_IoT\demo section that you accessed before, open

    msft_Azure_IoT_clientcredential_keys.h

    and edit line 14, adding the SAS Primary Key that you have just copied from the      Azure IoT Central application

         #define keyDEVICE_SAS_PRIMARY_KEY       ""

     

    I'll try again

    Steve K

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • skruglewicz
    0 skruglewicz over 4 years ago in reply to jafoste4

    I'll check again, but I believe I followed your directions in your workshop part2?

     

    On Iot Central I opened my device which I created on my 2nd free 7 day template. I Opened the "Connect" dialog  and using the information to fill in the following info in the code

     

    1) In your MCU application, navigate to msft_Azure_IoT\demo section

    then open :

    msft_Azure_IoT_clientcredential.h

     

     

    Copy the Scope ID (ID Scope) and Device ID values to the header file

         #define clientcredentialAZURE_IOT_SCOPE_ID ""

         #define clientcredentialAZURE_IOT_DEVICE_ID ""

     

     

    Edit line #22, adding the Azure DPS provisioning service as the MQTT Broker Endpoint

    "global.azure-devices-provisioning.net"

     

    2) This application also includes some code to support the simpler Shared Access Signature (SAS) authentication. This requires SAS Primary Key for connecting your real device also needs to be added. While still in this Device      Connection window, click on Shared Access Signature (SAS) then copy to the clipboard the Primary key that is displayed…

     

     

    Back in MCUXpresso, under the msft_Azure_IoT\demo section that you accessed before, open

    msft_Azure_IoT_clientcredential_keys.h

    and edit line 14, adding the SAS Primary Key that you have just copied from the      Azure IoT Central application

         #define keyDEVICE_SAS_PRIMARY_KEY       ""

     

    I'll try again

    Steve K

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube