// Get some data
String data = String(10);
// Trigger the integration
Particle.publish("JB_Test", data, PRIVATE);
// Wait 60 seconds
Serial.println("Sent Test Data");
delay(60000);
The code flashes fine and i can see it running, then i check the integration log and i can see i am getting the below error:
getaddrinfo ENOTFOUND myhubname.azure-devices.net
I can’t find any information on how to resolve this anywhere online. Any ideas?
Just tried running the command and found that i needed to add -d before the particle device id, but it seemed to run but gave me a long error, the summary is below:
[0] create a generic issue.
[1] az iot hub : FAILURE. Ran: 11 mins ago.
[2] az iot hub monitor-events: FAILURE. Ran: 10 mins ago.
[3] az extension add : SUCCESS. Ran: 9 mins ago.
[4] az iot hub monitor-events: FAILURE. Ran: 9 mins ago.
[5] az iot hub monitor-events: FAILURE. Ran: 8 mins ago.
[6] az iot hub monitor-events: FAILURE. Ran: 8 mins ago.
[7] az iot hub monitor-events: FAILURE. Ran: 4 mins ago.
[8] az iot hub monitor-events: FAILURE. Ran: 1 mins ago.
CLIInternalError: The command failed with an unexpected error. Here is the traceback:
ErrorCodes.UnknownError: Connection in an unexpected error state.
After a lot of digging i’ve discovered that the IoT hub i created through the dashboard was not showing when i ran
az iot hub list -o table
I then used the CLI to create a new hub and this worked first time. Microsoft support were unable to tell me why the dashboard created iot hub wouldn’t show up.