in content/AzDpsClient.js [30:44]
async registerDevice () {
const endpoint = 'https://dps-proxy.azurewebsites.net/register'
const url = `${endpoint}?scopeId=${this.scopeId}&deviceId=${this.deviceId}&deviceKey=${encodeURIComponent(this.deviceKey)}&modelId=${this.modelId}`
console.log(url)
const response = await fetch(url, {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Content-Encoding': 'utf-8'
}
})
const resp = await response.json()
console.log(resp)
return resp
}