mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-04 22:17:24 +00:00
move creation of ric-sub as char to poc-decoder
This commit is contained in:
parent
2d8c5e4bf5
commit
300675a0e3
6 changed files with 12 additions and 10 deletions
|
|
@ -157,8 +157,7 @@ def run(typ,freq,data):
|
|||
logging.debug("Start POC to BosMon")
|
||||
try:
|
||||
# BosMon-Telegramin expected "a-d" as RIC-sub/function
|
||||
data["function"] = data["function"].replace("1", "a").replace("2", "b").replace("3", "c").replace("4", "d")
|
||||
params = urllib.urlencode({'type':'pocsag', 'address':data["ric"], 'flags':'0', 'function':data["function"], 'message':data["msg"]})
|
||||
params = urllib.urlencode({'type':'pocsag', 'address':data["ric"], 'flags':'0', 'function':data["functionChar"], 'message':data["msg"]})
|
||||
logging.debug(" - Params: %s", params)
|
||||
# dispatch the BosMon-request
|
||||
bosMonRequest(httprequest, params, headers)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue