none
IoT Edge Module - difference between VS and VSCode generated Edge module codes RRS feed

  • Question

  • 1. If I create a new IoT Edge module on VS (2017 or 2019), it uses AMQP, and if it's created on VSCode, it uses MQTT.

    2. If module uses AMQP, it behaves strangely with the other module (either SimulatedTemperatureSensor, or my own module which uses AMQP).

    Issue is that, I'm not receiving all the messages, instead, it keeps repeating either first or first two messages. I've already posted this issue here. AMQP is causing this issue.

    1. Why there's a difference between new edge module between VS and VSCode?

    2. Why AMQP is not working even if the other edge module uses AMQP, and why it works when I change to MQTT?

    3. Which is the correct way to communicate?

    Thanks.

    --Keshava


    • Edited by Keshava GN Saturday, October 19, 2019 7:22 AM
    Saturday, October 19, 2019 5:52 AM

Answers

All replies

  • Visual Studio (free Community edition - since 2015) is a simplified version of the full version and replaces the separated express editions used before 2015.

    Visual Studio Code (VSCode) is a cross-platform (Linux, Mac OS, Windows) editor that can be extended with plugins to your needs.

    Saturday, October 19, 2019 6:50 AM
  • Updated the title.

    There's a difference between the iot edge source code module generated by these two IDEs.

    The one created in VS doesn't work for me.

    I'm concerned about this code.

    Thanks

    • Edited by Keshava GN Monday, October 21, 2019 7:04 AM
    Saturday, October 19, 2019 7:23 AM
  • Hi Keshava,

    Like discussed on the related thread on docs: https://github.com/MicrosoftDocs/azure-docs/issues/40855

    Why there's a difference between new edge module between VS and VSCode?

    The module creation on VS and VSCode doesn't necessarily need to be using the same protocol.

    Why AMQP is not working even if the other edge module uses AMQP, and why it works when I change to MQTT?

    That shouldn't happen though there may be relations with proxy, did you try using a different network?

    Which is the correct way to communicate?

    To help: Reference - choose a communication protocol

    Thanks!

    Thursday, October 24, 2019 3:44 PM
    Moderator
  • Closing the thread since we can use github thread.. Thanks for the support.. 
    Friday, October 25, 2019 4:10 AM