Remove log messages. Fix port number. #535
This commit is contained in:
parent
eba1c015b2
commit
c2fcf00249
3 changed files with 4 additions and 4 deletions
|
|
@ -83,7 +83,7 @@ class MapEventHandler {
|
|||
case "location":
|
||||
console.log("got location for rider " + chan_split[1] + " - " + payload);
|
||||
var pl_split = payload.split(':');
|
||||
console.log(pl_split);
|
||||
// console.log(pl_split);
|
||||
|
||||
// check for correct format
|
||||
if (pl_split.length != 2)
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ def on_message(client, userdata, message):
|
|||
channel = 'rider/%s/location' % rider_id
|
||||
payload = rider_lat + ':' + rider_long
|
||||
|
||||
print channel
|
||||
print payload
|
||||
#print channel
|
||||
#print payload
|
||||
|
||||
client.publish(channel, payload)
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ client.on_message = rconvert.on_message
|
|||
# "/root/aws_ssl_keys/fullchain.pem", cert_reqs=ssl.CERT_NONE,
|
||||
# tls_version=ssl.PROTOCOL_TLSv1)
|
||||
#client.connect("resqaws.jankstudio.com", 8883, 60)
|
||||
client.connect("localhost", 8883, 60)
|
||||
client.connect("localhost", 1883, 60)
|
||||
|
||||
|
||||
rider_convert = rconvert.MQTTRiderConvert()
|
||||
|
|
|
|||
Loading…
Reference in a new issue