comparison service/rfid_pn532_py/rfid.py @ 433:d7ede2330b6d

update debug host Ignore-this: 80ebe8e0eaca963ea2c6ff532d67ce16
author drewp@bigasterisk.com
date Sun, 07 Apr 2019 04:02:42 -0700
parents f134b64a0ab7
children 2409446ccfa2
comparison
equal deleted inserted replaced
432:f134b64a0ab7 433:d7ede2330b6d
160 self.masterGraph.patch(Patch(addQuads=[], delQuads=delQuads)) 160 self.masterGraph.patch(Patch(addQuads=[], delQuads=delQuads))
161 161
162 def _sendOneshot(self, oneshot): 162 def _sendOneshot(self, oneshot):
163 body = (' '.join('%s %s %s .' % (s.n3(), p.n3(), o.n3()) 163 body = (' '.join('%s %s %s .' % (s.n3(), p.n3(), o.n3())
164 for s,p,o in oneshot)).encode('utf8') 164 for s,p,o in oneshot)).encode('utf8')
165 url = b'http://bang6:19071/oneShot' 165 url = b'http://bang:9071/oneShot'
166 d = fetch(method=b'POST', 166 d = fetch(method=b'POST',
167 url=url, 167 url=url,
168 headers={b'Content-Type': [b'text/n3']}, 168 headers={b'Content-Type': [b'text/n3']},
169 postdata=body, 169 postdata=body,
170 timeout=5) 170 timeout=5)