LMAC: efficient carrier-sense multiple access for LoRa