File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -560,6 +560,22 @@ def getNetworks():
560
560
return HARDWARE .get_networks ()
561
561
562
562
563
+ @dispatcher .add_method
564
+ def getEsimProfiles ():
565
+ return [asdict (p ) for p in HARDWARE .get_sim_lpa ().list_profiles ()]
566
+
567
+
568
+ @dispatcher .add_method
569
+ def downloadEsimProfile (lpa_activation_code : str , profile_name : str ):
570
+ HARDWARE .get_sim_lpa ().download_profile (lpa_activation_code , profile_name )
571
+
572
+
573
+ @dispatcher .add_method
574
+ def setEsimProfile (iccid : str ):
575
+ HARDWARE .get_sim_lpa ().switch_profile (iccid )
576
+ HARDWARE .reboot_modem ()
577
+
578
+
563
579
@dispatcher .add_method
564
580
def takeSnapshot () -> str | dict [str , str ] | None :
565
581
from openpilot .system .camerad .snapshot import jpeg_write , snapshot
You can’t perform that action at this time.
0 commit comments