How to get Device ID in code? RRS feed

  • Question

  • Hi,
    I want to include unique id to my REST data. using libcurl.
    Can I get Azure Sphere Device ID in code? (like value from "azsphere device show-attached")
    Wednesday, March 27, 2019 8:44 AM

All replies

  • Hi matsujirushi,

    I am checking this with Product Team.

    Thank you!

    Thursday, March 28, 2019 2:13 PM
  • Hi matsujirushi,

    I confirmed that we don't have an API for apps to get the device ID due to security reasons. Our future plan is to allow the app to include the device certificate (issued by our Device Attestation and Authentication service) in REST requests, which the cloud service would then validate.  This isn’t supported today however - if that meets your needs can you create a uservoice entry and share here the link so we can prioritize?

    Otherwise, can you detail better your scenario? Thanks!

    Thursday, March 28, 2019 6:22 PM
  • Hi, Antonio.

    I am developing PoC for measuring temperature and humidity device.
    It device include MT3620 and send data to KINTONE by REST API.

    I want to set unique device id in REST API json data. (We cannot custimize server-side.)


    snprintf(post_data, sizeof(post_data), "{\"app\":\"" APP_ID "\",\"record\":{\"deviceId\":{\"value\":\"MT3620\"},\"temp\":{\"value\":%.2f},\"humi\":{\"value\":%.2f}}}", Temperature, Humidity);


    (I think this is a general requirement.)

    Thursday, April 4, 2019 12:34 AM
  • Hey Antonio, I have the same requirement please provide any update on it.
    Monday, April 8, 2019 9:24 AM
  • Hi Matsu and Yatin.

    May i kindly ask that you create a new feedback entry here?

    After that, please vote for it and let me know the link so we can follow-up with you there!


    Friday, April 12, 2019 11:50 AM