I am trying to build what is essentially an RPC mechanism over Bluetooth. I need to be able to send over Bluetooth:
1) The name of the function to call
2) A string argument
3) A List of Objects
The problem comes with converting a List of Objects into some kind of binary stream. I need to be able to send the entire request in one AsyncStreams.Write call, so I need to be able to deconstruct the entire request into 3 arguments, of which the last argument will be a List component.
I then (obviously) need to be able to reconstruct the request into it's original 3 components so I can call the named function with the listed arguments.
Perhaps there is a much easier way to do this, and if so I am open to suggestions. At this point, the only real requirement is that I am able to call remote functions over Bluetooth.
I appreciate any suggestions!
Thanks!
1) The name of the function to call
2) A string argument
3) A List of Objects
The problem comes with converting a List of Objects into some kind of binary stream. I need to be able to send the entire request in one AsyncStreams.Write call, so I need to be able to deconstruct the entire request into 3 arguments, of which the last argument will be a List component.
I then (obviously) need to be able to reconstruct the request into it's original 3 components so I can call the named function with the listed arguments.
Perhaps there is a much easier way to do this, and if so I am open to suggestions. At this point, the only real requirement is that I am able to call remote functions over Bluetooth.
I appreciate any suggestions!
Thanks!