here I hammered out a variation of this plugin. I do not think the RTi connection would be persistent. I think it connects drops whatever data it needs to and closes the connection. the way the original is coded up is it sends data to the socket that is waiting for a connection. and RTi connects and runs there is no one there to send a message to it falls on def ears. that is why messages form RTi make it to EG but not vice versa. It also uses asyncore which I am not a huge fan of.
So this one i made up will create a new socket for sending data to RTi. I do not know if there is an API for this. but give it a go and see if it works.
The data that is sent to EG has to be json data. there is only one keyword that 100% of the time has to be there the other 2 are optional
the suffix keyword is mandatory
Code: Select all
{"suffix": "some_event_suffix", "prefix": "some_event_prefix", "payload": "some payload data"}
the payload can be a list, or a json object. a string. bool. whatever basically.
if you use the prefix keyword this will override the prefix you have entered in the plugin config.