iot-onboarding / tiedie

Tie Die Onboarding and Control Project
Other
6 stars 0 forks source link

Add support for a mock device in gateway #24

Closed rohitmohan96 closed 8 months ago

rohitmohan96 commented 8 months ago

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)
rohitmohan96 commented 8 months ago

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).