forked from thomas-pythonas/saspy
-
Notifications
You must be signed in to change notification settings - Fork 6
/
example.py
28 lines (24 loc) · 1.04 KB
/
example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from sas import Sas
from config_handler import *
# Let's init the configuration file
config_handler = ConfigHandler()
config_handler.read_config_file()
sas = Sas(
port=config_handler.get_config_value("connection", "serial_port"),
timeout=config_handler.get_config_value("connection", "timeout"),
poll_address=config_handler.get_config_value("events", "poll_address"),
denom=config_handler.get_config_value("machine", "denomination"),
asset_number=config_handler.get_config_value("machine", "asset_number"),
reg_key=config_handler.get_config_value("machine", "reg_key"),
pos_id=config_handler.get_config_value("machine", "pos_id"),
key=config_handler.get_config_value("security", "key"),
debug_level="DEBUG",
perpetual=config_handler.get_config_value("connection", "infinite"),
)
print(sas.start())
print(sas.en_dis_rt_event_reporting(False))
print(sas.sas_version_gaming_machine_serial_id())
print(sas.gaming_machine_id())
print(sas.aft_in(15.00))
print(sas.aft_clean_transaction_poll())
print(sas.current_credits())