Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Работа с контроллером версии 8 #52

Closed
skv-pa opened this issue Aug 10, 2023 · 1 comment
Closed

Работа с контроллером версии 8 #52

skv-pa opened this issue Aug 10, 2023 · 1 comment

Comments

@skv-pa
Copy link

skv-pa commented Aug 10, 2023

Для работы с новыми NB IoT контроллерами версии 8, в api.py надо добавить:

def get_controller_name(self, version_id):
return {
version_id == "1.3"
or version_id == "1.4"
or version_id == "1.5": "счетчик C1",
version_id == "3.1" or version_id == "3.2": "контроллер R1(до 2017)",
version_id == "3.4": "контроллер R1 8 (2017-2018)",
version_id == "3.5": "контроллер R1 4 (после 2018))",
version_id == "4.0": "контроллер R2",
version_id == "4.1": "контроллер R4",
version_id == "6.3": "контроллер R5",
version_id == "7.2": "контроллер R6",
version_id == "8.2": "контроллер R7(до 2020)",
version_id == "8.3": "контроллер R7(после 2020)",
version_id == "9.1": "контроллер R8(после 2022)",
}[True]

@volshebniks
Copy link
Owner

добавил

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants