0

I'm trying to send an Event from a device to an Azure IoT Central hub.

Sending telemetry data works, but I'm not seeing a response when I try to send an event and I'm pretty sure it's due to not knowing the correct JSON format to use. Does anyone know the correct format and objects you need to fill in to send an event? Is this documented somewhere I might have missed?

Thanks for your help, let me know if you need more detail.

  • Please enter a example of your code to better explain your case and so that we can help you. See the How to Ask page for help clarifying this question: https://stackoverflow.com/help/how-to-ask – borchvm Jan 16 '20 at 12:33
  • What was the command used? – Bhargavi Annadevara Jan 17 '20 at 09:24
  • The JSON string I tried sending to Azure was `{"picTaken":"TestImage.jpg"}`. – Billy Wood Jan 17 '20 at 16:06
  • Nope, I meant to ask about the medium used to perform the operation. Which Azure SDK and module/method are you using? – Bhargavi Annadevara Jan 19 '20 at 11:05
  • If so, please include your code snippet in the question. – Bhargavi Annadevara Jan 19 '20 at 16:52
  • Oh sure. I was using C++ on an embedded board using [this library](https://github.com/gloveboxes/Connecting-Particle-Photon-to-Azure-IoT-Hub). None of the examples document how to send Events, and I presumed there was a common JSON format I'd need to follow that I'm missing. – Billy Wood Jan 20 '20 at 21:36

0 Answers0