shadysim: Make it work with the SMPP mode
This commit is contained in:
@@ -407,8 +407,13 @@ if args.pcsc is not None:
|
|||||||
elif args.serialport is not None:
|
elif args.serialport is not None:
|
||||||
from pySim.transport.serial import SerialSimLink
|
from pySim.transport.serial import SerialSimLink
|
||||||
sl = SerialSimLink(device=args.serialport, baudrate=9600)
|
sl = SerialSimLink(device=args.serialport, baudrate=9600)
|
||||||
|
elif args.smpp is not None:
|
||||||
|
class DummySL:
|
||||||
|
pass
|
||||||
|
sl = DummySL()
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
raise RuntimeError("Need to specify either --serialport or --pcsc")
|
raise RuntimeError("Need to specify either --serialport, --pcsc or --smpp")
|
||||||
|
|
||||||
sc = SimCardCommands(sl)
|
sc = SimCardCommands(sl)
|
||||||
ac = AppLoaderCommands(sl)
|
ac = AppLoaderCommands(sl)
|
||||||
|
|||||||
Reference in New Issue
Block a user