Android Question Sending complex data structures over Bluetooth

quotidianvoid

Member
Licensed User
Longtime User
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!
 

quotidianvoid

Member
Licensed User
Longtime User
Aha, somehow I missed that when I was looking through the libraries... That was EXACTLY what I needed. Thanks a lot!!
 
Upvote 0
Top