peripheral is an object that eventually contains itself.
It's coming from the noble library so I don't have control over that.
This causes an issue when JSON.stringify() is called to save the accessory to disk.
Make the peripheral property private using ECMAScript private field (instead of typescript's private keyword), as it will exclude peripheral from JSON.stringify().
peripheral
is an object that eventually contains itself. It's coming from thenoble
library so I don't have control over that.This causes an issue when
JSON.stringify()
is called to save the accessory to disk.Make the
peripheral
property private using ECMAScript private field (instead of typescript'sprivate
keyword), as it will excludeperipheral
fromJSON.stringify()
.Fixes #11