How can I commucate with the device with asp.net core? RRS feed

  • Question

  • User1052024640 posted

    Our company has an old project made by UWP(with GUI) and running in Raspberry with windows IOT before.

    As we know, Windows IoT has not updated for several years that it seems it is dead.

    These days I found that Microsoft has published many tutorials about asp.net core in IoT devices.

    Because of this, I want to migrate my project from UWP to asp.net core.

    The Raspberry will connect to a third-party device by a LAN port. The device has an interface protocol that I use a socket to communicate with it before.

    I don't know much about socket whether it is the same as HTTPClient/WebSocket or there is a better way to replace it. In addition, it seems asp.net core does not support the socket.

    Would you please give me a suggestion? Thank you.

    Friday, March 13, 2020 5:23 AM


  • User415553908 posted

    I'm not sure I understand the problem statement correctly, asp.net is normally based on HTTP, and surely .net core can do that on Pi. If your other device requires simple TCP/UDP connection, I believe sockets are also supported so you should be covered either way. 

    Given .net core runs on Linux, you might want to consider that as you base OS - it's being actively maintained and developed so again, you probably will see not a lot of roadblocks.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, March 13, 2020 6:13 AM