How to listen to incoming HDP connection Android bluetooth? -


in bluetooth hdp sample google, seems try initiate connections device (so phone client , health device server).

however, health device have (omron 708-bt) designed bluetooth client not server - can initiate connections can't listen incoming connections.

how can make phone listen incoming hdp connections similar how it's done spp here?

there sample app based on antidote 11073 stack that:

https://github.com/brasileiroaraujo/healthserviceandroid

basically need register handler in bluetoothhdpservice (by sending msg_reg_client). in example source, handler name mincominghandler.

the handler gets messages bluetoothhdpservice.status_create_channel, when device connects , creates hdp channel.

don't forget register data types accept sending bluetoothhdpservice.msg_reg_health_app messages. data type blood pressure 0x1007, think.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -