feat: Ensure that echo is enabled before other operations

This commit is contained in:
ptrcnull 2021-10-07 20:45:50 +02:00
parent 2780e3cc5d
commit 7824708fb1

1
api.py
View file

@ -66,6 +66,7 @@ class Modem:
return res.decode('utf-8') # decode to string
def reset(self):
self.send('ATE1')
res = self.send('ATZ')
if res != 'OK':
raise InvalidResponseException(res)