gloveboxes / Connecting-Particle-Photon-to-Azure-IoT-Hub

Connect Particle Argon or Photon directly to Azure IoT Hub and enjoy device to cloud, cloud to device messaging and direct method support
MIT License
9 stars 1 forks source link

Support for 2.0.1 #6

Open Willybood opened 3 years ago

Willybood commented 3 years ago

I've started to see issues using this library with the latest version of the Particle firmware (2.0.1). When running this simple example on a Particle B5 SOM, after hub.loop is run I see a red SOS with one flash (aka hard fault). Has anyone else run it with that OS version?

IotHub hub(CONNECTION_STRING);

void setup() {
}

void loop() {
  if(hub.loop()) {
  }
  delay(5000);
}
Willybood commented 3 years ago

It looks like the issue is with the SSH key generation. I know there were changes to some of the internal buffers with the latest OS release, it's possible it's running out of memory when generating it.