#!/bin/bash

lockfile-create "/tmp/voletSomfy.lockfile"

#mosquitto_pub -h  www.maqiatto.com -u jerome.delacotte@gmail.com -P setaou -I clientId-9FG7vBimhk -t "jerome.delacotte@gmail.com/$2/volet" -m $1 
mosquitto_pub -t "jerome.delacotte@gmail.com/$2/volet" -m $1 
lockfile-remove "/tmp/voletSomfy.lockfile"

