// ĠCopyright Ġ 2 0 1 7 - 2 0 2 0 ĠFit bit , ĠInc Ċ // ĠSPDX - License - Identifier : ĠApache - 2 . 0 Ċ Ċ package Ġcom . fit bit . gold eng ate . node Ċ Ċ import Ġcom . fit bit . bluetooth . fb g att . Gatt Connection Ċ import Ġcom . fit bit . bluetooth . fb g att . rx . client . listeners . Gatt Client Characteristic ChangeListener Ċ import Ġcom . fit bit . gold eng ate . bt . g att . server . services . g att link . Transmit Characteristic Ċ import Ġio . reactivex . Observable Ċ Ċ /** Ċ Ġ* ĠUse ĠG att link Ġservice Ġhosted Ġon Ġconnected ĠNode ĠG ATT Ġserver Ġfor Ġreceiving Ġdata Ġon Ġits ĠTx Ġcharacteristic Ċ Ġ*/ Ċ internal Ġclass ĠRemote Gatt link Node Data Receiver ( ĊĠĠĠ Ġprivate Ġval Ġconnection : ĠG att Connection , ĊĠĠĠ Ġprivate Ġval Ġg att Client Characteristic ChangeListener : ĠG att Client Characteristic ChangeListener Ġ= ĠG att Client Characteristic ChangeListener () Ċ ) Ġ: ĠNode Data Receiver Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġreceive (): ĠObservable < ByteArray > Ġ= ĊĠĠĠĠĠĠĠ Ġg att Client Characteristic ChangeListener . register ( connection , ĠTrans mit Characteristic . uuid ) Ċ } Ċ