Skip to content

Commit

Permalink
Mqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
VanessaHuertas committed May 9, 2018
1 parent c81f022 commit 79473cf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

user.connect('localhost', port=8083)
error = 0
alarmas = 1
alarmas = 200
tiempoinicial = time.time()

for i in range(0, alarmas):
user.publish("conjunto1/residencia1/alerta", payload='Alerta, Intruso!!!')

tiempofinal = time.time() - tiempoinicial
print('Tiempo de envío en segundos:', int(tiempofinal))
print('Tiempo de envío en segundos:', tiempofinal)
print('Porcentaje de error: ' + str(error) + '%')


0 comments on commit 79473cf

Please sign in to comment.