Skip to Content

How can I connect serialport in SDK codes?

Hi all,

I want to connect SerialPort in SDK codes to send and receive from device, actually in normal VB I can get it in toolbox but in SDK codes toolbox has empty item, so how can I connect it in SDK codes?

Please anyone can help me

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 24, 2017 at 03:21 PM

    Hi Rurangwa,

    To connect with a serial port, I believe you should use SerialPort class from .NET framework.

    There is a sample on MSDN page: https://msdn.microsoft.com/pt-br/library/system.io.ports.serialport(v=vs.110).aspx

    I am able to use this class and read the data from a balance connected in a COM port with my computer.

    Hope it helps.

    Kind Regards,

    Diego Lother

    Add comment
    10|10000 characters needed characters exceeded