1234567891011121314151617181920212223 |
- #!/usr/bin/env python3
- from modbus.client.serial import rtu
- from starlette.routing import Router
- from starlette.responses import JSONResponse
- from conf import config
- from db.db import sql
-
- def get_variables(request):
- pass
-
-
- def get_variables_by_type(request):
- pass
-
-
- def get_var_type_addresses(request):
- request.path_params['type']
-
- heatpump = [
- Route('/', get_variables, methods=['GET']),
- Route('/{type:str}', get_variables_by_type, methods=['GET'])
- ]
|