@@ -21,7 +21,8 @@ def __init__(self, atcom):
2121 Constructor for Base class
2222 """
2323 self .atcom = atcom
24- self .powerkey_pin = Pin (19 , Pin .OUT )
24+ # self.module_power = Pin(26, Pin.OUT)
25+ self .powerkey_pin = Pin (17 , Pin .OUT )
2526 self .status_pin = Pin (20 , Pin .IN )
2627
2728 def power_off (self ):
@@ -259,7 +260,7 @@ def get_cell_information(self, cell_type):
259260 if cell_type not in ["servingcell" , "neighbourcell" ]:
260261 return {"status" : Status .ERROR , "response" : "Invalid cell type" }
261262
262- command = f'AT+QENG="{ cell_type } "'
263+ command = f'AT+QENG="{ cell_type } "'
263264 return self .atcom .send_at_comm (command )
264265
265266 def get_all_cells (self , technology = "eMTC" , timeout = 60 ):
@@ -289,5 +290,7 @@ def get_all_cells(self, technology="eMTC", timeout=60):
289290 return {"status" : Status .ERROR , "response" : "Invalid technology" }
290291
291292 # TODO: Get all the information from the URC, not the first one.
292- command = f'AT+QCELLSCAN={ technology_no } ,{ timeout } '
293- return self .atcom .send_at_comm (command , timeout = timeout , urc = True , desired = '+QCELLSCAN: "{technology}",' )
293+ command = f"AT+QCELLSCAN={ technology_no } ,{ timeout } "
294+ return self .atcom .send_at_comm (
295+ command , timeout = timeout , urc = True , desired = '+QCELLSCAN: "{technology}",'
296+ )
0 commit comments