I want to use my Gear S3 as heart rate sensor

I want my Gear S3 to just trasmit heart rate data as sensor.
I want my Smartphone to recognize my gear S3 as heart rate sensor.
So I use BluetoothLEService of tizen studio sample.
fix its error and install my Gear.
LE advertising is good but my smartphone connect gear as smart watch repeatedly.
I just want to use my gear as heart rate sensor in my smartphone samsung health.
I am trying to make program for a week…
give me hint

Samsung Health is a Proprietary Algorithm and is not a public API. You can access the sensor data directly but you need to create your own method of using it.

Samsung Developer Program