VSChina / ESP32_AzureIoT_Arduino

The library for ESP32 Azure IoT for Arduino
MIT License
37 stars 43 forks source link

DeviceMethodCallback being called multiple times #21

Closed AltusBaard closed 4 years ago

AltusBaard commented 4 years ago

When calling a device method from Azure IoT Central, the device method gets called 4 times and never responds correctly to IoT Central.

Error on IoT Central: Unexpected response occurred while attempting to execute method Start on device

I am using the esp32-iot-devkit-get-started/Device/device.ino sample.

Messages to IoT hub seem to work correct.

AltusBaard commented 4 years ago

So got this sorted by using a different response message: { "Response": "Successful" }

Not sure if this is because of an IoT Central requirement, but found this in one of the IoT workbench examples