I've gotten pretty far without needing to post but there is a wall that I can't seem to get past. I'm creating a plugin that sends and receives Serial Commands. The idea is to send a command out, and listen for a return so I can output something all within a function. Or if possible, after sending a command, return to ProcessEvent and listen for the return. Currently, I have sending serial commands working nicely.
I've looked and waded through many documentations and posts about how to do something similar. I can't seem to get any to work.
Currently in my code I have a function that handles the command input and sends the command. In my pluginbuilder, I have initialized a
Plugin.SerialPort = CreateObject("roSerialPort", 0, 9600)
In my function, I have
byteArray = CreateObject("roByteArray")
command is the hex string, o is the plugin array.
However to capture a return value is where I get stuck. I've read using roStreamLineEvent would help me, but I can't seem to get that to be the event.
Any help would be great.