Commit e12db330 authored by Nico Schottelius's avatar Nico Schottelius

notify payload only

parent 478c0706
......@@ -20,8 +20,8 @@ log = logging.getLogger(__name__)
def db_notify(provider, payload='', deveui=''):
notify="{}:{}".format(deveui, payload)
def db_notify(provider, payload=''):
log.debug("Notify: {} {}".format(provider, notify))
conn = psycopg2.connect("dbname={}".format(dbname))
......@@ -31,7 +31,7 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
# And insert into the db
lorautil.db_insert_json("ttn", post_data, payload, deveui)
lorautil.db_notify("ttn", post_data, deveui)
lorautil.db_notify("ttn", post_data)
def payload_hex(self, data):
mydict = lorautil.jsonToDict(data)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment