Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions gli4py/glinet.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,28 @@ async def router_info(self) -> dict:

return response

async def modem_info(self) -> dict:
"""Retrieves information about the modems, requires authentication."""
response = await self._request(
self.gen_sid_payload("call", ["modem", "get_info"], self.sid)
)
return response

async def modem_sim_info(self) -> dict:
"""Retrieves information about the modems, requires authentication."""
response = await self._request(
self.gen_sid_payload("call", ["modem", "get_sim_info"], self.sid)
)
return response

async def modem_sim_signal(self) -> dict:
"""Retrieves information about the modems, requires authentication."""
response = await self._request(
self.gen_sid_payload("call", ["modem", "get_sim_signal"], self.sid)
)
return response


async def router_get_status(self) -> dict[str, list[dict[str, Any]]]:
"""Retrieves the status of the router, requires authentication."""
response: dict[str, list[dict[str, Any]]] = await self._request(
Expand Down