When 2 24 bit ADC work same time the problem appears. For example first 24 bit ADC is reaches the target value lets say 500, when first 24 bit ADC reaches the 500, ethernet tries to send to API that value. Second 24 bit ADC might be reach 500 while ethernet trying to post to api.
When ethernet module trying to post first 24 bit ADC's value, It might be miss second 24 bit ADC's values. So I need to use await for request module too
When I try to use it like this ;
Code: Select all
JSON_URL = ("http://jsonplaceholder.typicode.com/todos/1")
response = await requests.get(JSON_URL)
print(response.json())
r = response.json()
Code: Select all
AttributeError: 'Response' object has no attribute '__await__'