John,
Here is a summary of what we do with other devices:
1. Use a bluetooth module that supports the Serial Port Protocol and that supports a mode where the module can "connect" to a bluetooth socket server using the serial port protocol. I believe that this is called "Master" mode. (Many bluetooth modules by default are waiting to "accept" for a connection from another device. I believe that this is called "Slave" mode. There may be some more nuances to this.
1. Pair the device with Android using the native Android bluetooth pairing process.
3. When your device takes a measurement, initiate a connection with the paired device, usually by calling a "connect" method
4. Create a custom thread class for AndroidDeviceGateway for your device that handles the parsing of the data from your device.
It sounds like, from your second e-mail, that you are now able to make the Bluetooth Serial Port Protocol connection with the bluetoothSocketServer in the AndroidDeviceGateway. Is that true? Sorry that I did not get to this e-mail until now. Outside of the Health and Wellness event, I am usually checking e-mail all day long. During the event, however, I am doing team coding and mentoring all day long. Hopefully we can sit down and make this work today. Or, if you can't come in, we can do it in a google hangout with screen sharing.
I have responded to your other e-mail as well about what to do in CollaboRhythm to handle the data that is passed over from the AndroidDeviceGateway. I have copied the text below for reference for others.
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