This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GUI Composer - Sending data through serial port on button click

Hello,

I need to send data to a target device through a serial port whenever a button is clicked. I know that there are lots of examples where a binding is set up between the GUI and the global variables in the target device; however, I do not know what pieces of code are inside of the target device. I only know that I should send some specified string to the device to interact with it. I'd like to be able to call something like "sendData(data);" from inside of the GUI - is this possible in GUI Composer?

I was also thinking of using a custom codec to do this, but I am unsure if this is the right direction to take.

Thanks,

Albert