File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -812,10 +812,10 @@ module.exports = function (RED) {
812812 await this . genericBleNode . disconnectPeripheral ( ) ;
813813 } else if ( obj . notify ) {
814814 await this . genericBleNode . subscribe ( msg . topic , obj . period ) ;
815- debugOut ( `<${ this . genericBleNode . uuid } > subscribe: OK` ) ;
815+ debugIn ( `<${ this . genericBleNode . uuid } > subscribe: OK` ) ;
816816 } else {
817817 const readObj = await this . genericBleNode . read ( msg . topic ) ;
818- debugOut ( `<${ this . genericBleNode . uuid } > read: OK` ) ;
818+ debugIn ( `<${ this . genericBleNode . uuid } > read: OK` ) ;
819819 if ( ! readObj ) {
820820 this . warn (
821821 `<${ this . genericBleNode . uuid } > tpoic[${ msg . topic } ]: (no data)`
@@ -834,6 +834,9 @@ module.exports = function (RED) {
834834 } ) ;
835835 }
836836 } catch ( err ) {
837+ debugIn (
838+ `<${ this . genericBleNode . uuid } > tpoic[${ msg . topic } ]: (err:${ err } , stack:${ err . stack } )`
839+ ) ;
837840 this . error (
838841 `<${ this . genericBleNode . uuid } > tpoic[${ msg . topic } ]: (err:${ err } , stack:${ err . stack } )`
839842 ) ;
You can’t perform that action at this time.
0 commit comments