Communication between Android Device Gateway and Collaboryhthm

10 views
Skip to first unread message

John Langhauser

unread,
Jan 25, 2013, 8:37:41 PM1/25/13
to collaborhyth...@googlegroups.com
When I connect my device to the android device gateway I am able to send messages to collaborythm without issue.  I am confused however where the hooks are in collaborythm to receive these messages so that I can actually act upon the messages my hardware is sending.  Can somebody point me to the code that is receiving these messages?

John Moore

unread,
Jan 26, 2013, 11:51:29 AM1/26/13
to collaborhyth...@googlegroups.com
John,

This functionality is part of the pluggable architecture of CollaboRhythm.

Use ForaD40bHealthActionInputControllerFactory as an example. It is used to support a ForaD40b Blood Glucose / Blood Pressure monitor.

1. Register a HealthActionInputControllerFactory for your device in your PluginModule. In your case, this is the "HypertensionPluginModule"
2. Create this HealthActionInputControllerFactory, which implements IHealthActionInputControllerFactory. One of the methods of this interface is called createDeviceHealthActionInputController. Use some conditional statements to inspect the urlVariables that you send from the AndroidDeviceGateway to CollaboRhythm to make sure that the data coming in is from your device.
3. If the conditions are met, create and return a HealthActionInputController that will determine what to do with the data from your device. This should extend HealthActionInputControllerBase  and implement IHealthActionInputController

I can do some team coding with you to get this working today. E-mail me directly to arrange.


On Fri, Jan 25, 2013 at 8:37 PM, John Langhauser <john.la...@gmail.com> wrote:
When I connect my device to the android device gateway I am able to send messages to collaborythm without issue.  I am confused however where the hooks are in collaborythm to receive these messages so that I can actually act upon the messages my hardware is sending.  Can somebody point me to the code that is receiving these messages?

--
You received this message because you are subscribed to the Google Groups "CollaboRhythm Developers" group.
To post to this group, send email to collaborhyth...@googlegroups.com.
To unsubscribe from this group, send email to collaborhythm-deve...@googlegroups.com.
Visit this group at http://groups.google.com/group/collaborhythm-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages