Added an --device {silabs|mock} flag to switch to a mock device. With this flag, the gateway will publish mock advertisements, and respond with mock responses for the control APIs.
Since this is a big commit, I need to think through if this is required in the cisco-ios-17.13 branch.
Also, increased the gateway pylint score:
$ pylint gateway
...
------------------------------------------------------------------
Your code has been rated at 9.22/10 (previous run: 9.17/10, +0.05)
I am renaming ap.py to ap_factory.py. The intention was to create and store globally the access point object (which can be the silabs or mock implementation, and in the future, other devices like RPis).
Added an
--device {silabs|mock}
flag to switch to a mock device. With this flag, the gateway will publish mock advertisements, and respond with mock responses for the control APIs.Since this is a big commit, I need to think through if this is required in the cisco-ios-17.13 branch.
Also, increased the gateway pylint score: